]> Git [git.vados.ru] :: Repos - Mikrotiks/ros.vados.ru.git/commitdiff
Autocommit in repo: ros.vados.ru, generated by owner: root, in 20:50:02 04.05.2026.
authorvados-dev <192440777+vados-dev@users.noreply.github.com>
Mon, 4 May 2026 17:50:03 +0000 (20:50 +0300)
committervados-dev <192440777+vados-dev@users.noreply.github.com>
Mon, 4 May 2026 17:50:03 +0000 (20:50 +0300)
html/AM-FwAddrLists.rsc
html/AM-GlobalFunc.rsc

index a98290dee75d7b02bbbf49699e84713b6d2c0de3..42e3422a0ef2bd22bba3f8b991fc3a1399ea39a7 100644 (file)
       :log debug ($ScriptName . " Downloaded " . [ $HumanReadableNum [ :len $Data ] 1024 ] . "B for list '" . $ListName . "' from: " . $ListUrl);
     }
 
-    :foreach Line in=[ :deserialize $Data delimiter="\n" from=dsv options=dsv.plain ] do={
-      :set Line ($Line->0);
-      :local Delim [ $FindDelim $Line ];
-      :if ($Delim = 0) do={ :set Line ""; };
-      :if ([ :len $Line ] = 0) do={ :error true; }
-      :local Address;
-      :if ([ :pick $Line 0 1 ] = "{" && [ :pick $Line ([ :len $Line ] - 1) ] = "}") do={
-        :do {
-          :set Address [ :tostr ([ :deserialize from=json $Line ]->"cidr") ];
-        } on-error={ }
-      } else={
+      :foreach Line in=[ :deserialize $Data delimiter="\n" from=dsv options=dsv.plain ] do={
+        :set Line ($Line->0);
+        :local Address;
+        :if ([ :pick $Line 0 1 ] = "{" && [ :pick $Line ([ :len $Line ] - 1) ] = "}") do={
+          :do {
+            :set Address [ :tostr ([ :deserialize from=json $Line ]->"cidr") ];
+          } on-error={ }
+        } else={
           :set Address ([ :pick $Line 0 [ $FindDelim $Line ] ] . ($List->"cidr"));
-      }
-      :do {
+        }
         :local Branch;
         :if ($Address ~ "^[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}(/[0-9]{1,2})?\$") do={
           :local Net $Address;
index 24d0b2056e7127bcca54a2eef3d9a1933feba8c2..48fd8b87c242c3ceb0b0f4e0e8dcd8e71ab784cb 100644 (file)
@@ -17,9 +17,9 @@
 :global GlobalFuncReady false;
 
 # Git commit id & info, expected configuration version
-:global CommitId "main/594/09d4bb09";
+:global CommitId "main/595/68134d5d";
 :global CommitTAG "unknown";
-:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 20:40:02 04.05.2026.";
+:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 20:50:02 04.05.2026.";
 
 # The variables are received right here.
 :global GlobalConfVersion 140;