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

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; :return false;
} }
:if ([ / ip cloud get update-time ] = true && \ :if ([ / ip cloud get ddns-enabled ] = true && [ / ip cloud get update-time ] = true) do={
[ :typeof [ / ip cloud get public-address ] ] = "ip") do={ :if ([ :typeof [ / ip cloud get public-address ] ] = "ip") do={
:return true; :return true;
}
:return false;
} }
:return false; :return false;