diff --git a/plugins/cloud/package-lock.json b/plugins/cloud/package-lock.json index 375477337..2e31dba6a 100644 --- a/plugins/cloud/package-lock.json +++ b/plugins/cloud/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/cloud", - "version": "0.1.7", + "version": "0.1.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scrypted/cloud", - "version": "0.1.7", + "version": "0.1.8", "dependencies": { "@eneris/push-receiver": "../../external/push-receiver", "@scrypted/common": "file:../../common", diff --git a/plugins/cloud/package.json b/plugins/cloud/package.json index 0c08156b2..b48530686 100644 --- a/plugins/cloud/package.json +++ b/plugins/cloud/package.json @@ -53,5 +53,5 @@ "@types/nat-upnp": "^1.1.2", "@types/node": "^18.11.18" }, - "version": "0.1.7" + "version": "0.1.8" } diff --git a/plugins/cloud/src/main.ts b/plugins/cloud/src/main.ts index ec4822555..504a76199 100644 --- a/plugins/cloud/src/main.ts +++ b/plugins/cloud/src/main.ts @@ -227,7 +227,7 @@ class ScryptedCloud extends ScryptedDeviceBase implements OauthClient, Settings, // scrypted cloud will replace localhost with requesting ip. const ip = this.storageSettings.values.forwardingMode === 'Custom Domain' ? this.storageSettings.values.hostname?.toString() - : 'localhost'; + : (await axios(`https://${SCRYPTED_SERVER}/_punch/ip`)).data.ip; if (!ip) throw new Error('Hostname is required for port Custom Domain setup.');