1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

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;