From 2edc60d912dededf10b7d68e5bb3ee501450ad0b Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Sat, 28 Jan 2023 11:17:49 -0800 Subject: [PATCH] cloud: fix erroneous error --- plugins/cloud/package-lock.json | 4 ++-- plugins/cloud/package.json | 2 +- plugins/cloud/src/main.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/cloud/package-lock.json b/plugins/cloud/package-lock.json index c69723da7..100e09be5 100644 --- a/plugins/cloud/package-lock.json +++ b/plugins/cloud/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/cloud", - "version": "0.1.5", + "version": "0.1.6", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scrypted/cloud", - "version": "0.1.5", + "version": "0.1.6", "dependencies": { "@eneris/push-receiver": "../../external/push-receiver", "@scrypted/common": "file:../../common", diff --git a/plugins/cloud/package.json b/plugins/cloud/package.json index b57d12c05..8001babab 100644 --- a/plugins/cloud/package.json +++ b/plugins/cloud/package.json @@ -52,5 +52,5 @@ "@types/nat-upnp": "^1.1.2", "@types/node": "^18.11.18" }, - "version": "0.1.5" + "version": "0.1.6" } diff --git a/plugins/cloud/src/main.ts b/plugins/cloud/src/main.ts index e24ae2755..54b4ec9b7 100644 --- a/plugins/cloud/src/main.ts +++ b/plugins/cloud/src/main.ts @@ -240,7 +240,7 @@ class ScryptedCloud extends ScryptedDeviceBase implements OauthClient, Settings, const registrationId = await this.manager.registrationId; const data = await this.sendRegistrationId(registrationId); - if (this.storageSettings.values.hostname && ip !== data.ip_address) { + if (ip !== 'localhost' && ip !== data.ip_address) { this.log.a(`Scrypted Cloud could not verify the IP Address of your custom domain ${this.storageSettings.values.hostname}.`); } this.storageSettings.values.lastPersistedIp = ip;