From ef7360453ff6b011e236e0adf3948719873c7040 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 22 Nov 2022 21:59:21 +0100 Subject: global-functions: $IsTimeSync: no cloud with CHR free license --- global-functions | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/global-functions b/global-functions index 3d04bcb..52ecbed 100644 --- a/global-functions +++ b/global-functions @@ -445,6 +445,11 @@ :return false; } + :if ([ /system/license/get ]->"level" = "free") do={ + $LogPrintExit2 debug $0 ("No ntp client configured, relying on RTC for CHR free license.") false; + :return true; + } + :if ([ /ip/cloud/get update-time ] = true) do={ :if ([ :typeof [ /ip/cloud/get public-address ] ] = "ip") do={ :set IsTimeSyncCached true; -- cgit v1.2.3-54-g00ecf