pinokiod 3.8.45 → 3.8.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -186,7 +186,7 @@ class Api {
186
186
  type: "disconnect"
187
187
  })
188
188
  console.timeEnd("stop 4")
189
- await this.kernel.caddy.update()
189
+ await this.kernel.router.refresh()
190
190
  return true
191
191
  }
192
192
  async startScripts() {
@@ -1074,7 +1074,7 @@ class Api {
1074
1074
  })
1075
1075
  }
1076
1076
  }
1077
- await this.kernel.caddy.update()
1077
+ await this.kernel.router.refresh()
1078
1078
  } catch (e) {
1079
1079
  ondata({ raw: e.toString() })
1080
1080
  }
@@ -10,10 +10,12 @@ class Caddy {
10
10
  }
11
11
  }
12
12
  async running() {
13
+ console.log("caddy running check")
13
14
  try {
14
- let response = await axios.get('http://localhost:2019/config')
15
+ let response = await axios.get('http://localhost:2019/config/')
15
16
  return true
16
17
  } catch (e) {
18
+ console.log(e)
17
19
  return false
18
20
  }
19
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.8.45",
3
+ "version": "3.8.47",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {