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:
@ -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;
|
||||
|
Reference in New Issue
Block a user