From 7febb6a0f418c07239fa8fcaa61ce4b5ef75f448 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 21 Aug 2020 23:30:36 +0200 Subject: global-functions: $TimeIsSync: return false if cloud enabled but not ready --- global-functions | 8 +++++--- 1 file 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; -- cgit v1.2.3-54-g00ecf