pinokiod 3.8.29 → 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.
Files changed (2) hide show
  1. package/kernel/caddy.js +2 -1
  2. 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 url = https_domain.replace(/\.localhost$/, '') + `${account}.localhost`
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.8.29",
3
+ "version": "3.8.30",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {