pinokiod 3.15.22 → 3.15.23

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.
package/kernel/index.js CHANGED
@@ -812,7 +812,7 @@ class Kernel {
812
812
  if (network_active) {
813
813
  this.refresh_interval = setInterval(() => {
814
814
  if (this.server_running) {
815
- this.refresh()
815
+ this.refresh(true)
816
816
  } else {
817
817
  console.log("server not running yet. retry network refresh in 5 secs")
818
818
  }
package/kernel/procs.js CHANGED
@@ -241,7 +241,12 @@ class Procs {
241
241
  // console.log("GET MAP")
242
242
  this.pid_running = false
243
243
  let map = this.get_name(e.state)
244
- this.port_map = map
244
+ if (!this.port_map) {
245
+ this.port_map = {}
246
+ }
247
+ for(let key in map) {
248
+ this.port_map[key] = map[key]
249
+ }
245
250
  this.pid_cb(map)
246
251
  }
247
252
  }
@@ -208,9 +208,9 @@ class Router {
208
208
  // update caddy config
209
209
  async update() {
210
210
  if (JSON.stringify(this.config) === JSON.stringify(this.old_config)) {
211
- // console.log("config hasn't updated")
211
+ console.log("######### config hasn't updated")
212
212
  } else {
213
- // console.log("caddy config has updated", this.config)
213
+ console.log("######### caddy config has updated. refresh", this.config)
214
214
  try {
215
215
  let response = await axios.post('http://127.0.0.1:2019/load', this.config, {
216
216
  headers: { 'Content-Type': 'application/json' }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.15.22",
3
+ "version": "3.15.23",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {