pinokiod 3.8.71 → 3.8.72
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
|
@@ -200,7 +200,7 @@ class Kernel {
|
|
|
200
200
|
}
|
|
201
201
|
start_port () {
|
|
202
202
|
if (this.router.port_mapping && Object.keys(this.router.port_mapping).length > 0) {
|
|
203
|
-
let max_caddy_port = Math.max(Object.values(this.router.port_mapping))
|
|
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 })
|
|
206
206
|
return start_port
|