pinokiod 3.8.63 → 3.8.64
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 +1 -1
- package/package.json +1 -1
package/kernel/index.js
CHANGED
|
@@ -199,7 +199,7 @@ class Kernel {
|
|
|
199
199
|
return this.api.running[id]
|
|
200
200
|
}
|
|
201
201
|
start_port () {
|
|
202
|
-
if (this.router.port_mapping && this.router.port_mapping.length > 0) {
|
|
202
|
+
if (this.router.port_mapping && Object.keys(this.router.port_mapping).length > 0) {
|
|
203
203
|
let max_caddy_port = Math.max(Object.values(this.router.port_mapping))
|
|
204
204
|
let start_port = Math.max(42003, max_caddy_port + 1)
|
|
205
205
|
console.log({ start_port })
|