global-functions: $IsTimeSync: no cloud with CHR free license

This commit is contained in:
Christian Hesse 2022-11-22 21:59:21 +01:00
parent a7bdebbfb0
commit ef7360453f

View file

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