diff options
author | Christian Hesse <mail@eworm.de> | 2020-08-21 23:30:36 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-08-21 23:33:12 +0200 |
commit | 7febb6a0f418c07239fa8fcaa61ce4b5ef75f448 (patch) | |
tree | 5323a04b99de2a9cb13dc2f3ecf1c9295501e1ca | |
parent | cc375704f35be7fa454335c20087daec030381db (diff) |
global-functions: $TimeIsSync: return false if cloud enabled but not ready
-rw-r--r-- | global-functions | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/global-functions b/global-functions index 95437c6..7f3e51b 100644 --- a/global-functions +++ b/global-functions @@ -776,9 +776,11 @@ :return false; } - :if ([ / ip cloud get update-time ] = true && \ - [ :typeof [ / ip cloud get public-address ] ] = "ip") do={ - :return true; + :if ([ / ip cloud get ddns-enabled ] = true && [ / ip cloud get update-time ] = true) do={ + :if ([ :typeof [ / ip cloud get public-address ] ] = "ip") do={ + :return true; + } + :return false; } :return false; |