]> Git [git.vados.ru] :: Repos - Mikrotiks/ros.vados.ru.git/commitdiff
Autocommit in repo: ros.vados.ru, generated by owner: root, in 12:05:02 15.05.2026.
authorvados-dev <192440777+vados-dev@users.noreply.github.com>
Fri, 15 May 2026 09:05:03 +0000 (12:05 +0300)
committervados-dev <192440777+vados-dev@users.noreply.github.com>
Fri, 15 May 2026 09:05:03 +0000 (12:05 +0300)
html/AM-GlobalFunc.rsc
html/AM-RKN-dnsLookup.rsc

index 5e56f1c79550d419ad22afe844b30a795434ff13..04cf93887940db4af385077ecf2d6d975d6da0a9 100644 (file)
@@ -17,9 +17,9 @@
 :global GlobalFuncReady false;
 
 # Git commit id & info, expected configuration version
-:global CommitId "main/647/752c0dee";
+:global CommitId "main/648/4ed2b672";
 :global CommitTAG "unknown";
-:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 11:55:03 15.05.2026.";
+:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 12:05:02 15.05.2026.";
 
 # The variables are received right here.
 :global GlobalConfVersion 140;
index 7a0981d1320f86c402af0df51f208a94894d7134..863e281e728ed2fcbddeeb430da8204f423fa818 100644 (file)
@@ -56,11 +56,11 @@ while (!$dnsLookupReady) do={ :nothing; }
     /ip firewall address-list remove $aListItem;\r
 }\r
 :foreach aItem in=$arrRKN do={\r
-    :do {\r
-        :resolve $aItem;\r
-    } on-error={\r
-        :log error "dns resolve failure [ ip - resolve ip ]";\r
-    }\r
+#    :do {\r
+        :retry delay=500ms max=5 on-error={:log error "dns resolve failure [ $arItem - resolve ip ]"} command={:resolve $aItem}\r
+#    } on-error={\r
+#        :log error "dns resolve failure [ $arItem - resolve ip ]";\r
+#    }\r
     :foreach dnsRecord in=[/ip dns cache all find where (name=$aItem)] do={\r
         :if ([/ip dns cache all get $dnsRecord type]="A") do={\r
             :local newAddress [/ip dns cache all get $dnsRecord data];\r
@@ -96,5 +96,5 @@ while (!$dnsLookupReady) do={ :nothing; }
     /system/scheduler/add name=$ScriptName on-event="/system/script { run $ScriptName; }" comment="Update RKN DNS Looup" interval=00:20:00 policy="ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon" start-time=startup;\r
   }\r
 :set dnsLookupReady true;\r
-delay 5s;  \r
+delay 2s;  \r
 :global dnsLookupReady (a);\r