pinokiod 3.8.28 → 3.8.30
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/caddy.js +2 -1
- package/kernel/peer.js +1 -1
- package/package.json +1 -1
package/kernel/caddy.js
CHANGED
|
@@ -241,7 +241,8 @@ class Caddy {
|
|
|
241
241
|
let https_domain = caddy_mapping[app_ip]
|
|
242
242
|
let remote_app_ip = app_ip.replace(/localhost|127\.0\.0\.1/g, ip)
|
|
243
243
|
// https_domain <port>.localhost
|
|
244
|
-
let
|
|
244
|
+
let re = new RegExp(ip)
|
|
245
|
+
let url = https_domain.replace(re, '.') + `${account}.localhost`
|
|
245
246
|
this.mapping[remote_app_ip] = url
|
|
246
247
|
payload.apps.http.servers.main.routes.push({
|
|
247
248
|
"match": [{
|
package/kernel/peer.js
CHANGED