cloud: fix erroneous error

This commit is contained in:
Koushik Dutta
2023-01-28 11:17:49 -08:00
parent a5df680ef2
commit 2edc60d912
3 changed files with 4 additions and 4 deletions

View File

@@ -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",

View File

@@ -52,5 +52,5 @@
"@types/nat-upnp": "^1.1.2",
"@types/node": "^18.11.18"
},
"version": "0.1.5"
"version": "0.1.6"
}

View File

@@ -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;