global-functions: $TimeIsSync: return false if cloud enabled but not ready

This commit is contained in:
Christian Hesse 2020-08-21 23:30:36 +02:00
parent cc375704f3
commit 7febb6a0f4

View file

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