aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-08-21 23:30:36 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-08-21 23:33:12 +0200
commit7febb6a0f418c07239fa8fcaa61ce4b5ef75f448 (patch)
tree5323a04b99de2a9cb13dc2f3ecf1c9295501e1ca
parentcc375704f35be7fa454335c20087daec030381db (diff)
global-functions: $TimeIsSync: return false if cloud enabled but not ready
-rw-r--r--global-functions8
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;