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

index c3efb2061fd813e10a1154c7b49aa9f9400d4786..f68182bb60243ed9ddfcb6764ceadcab4090eb79 100644 (file)
@@ -54,7 +54,7 @@
     :delay 5m;
   }
 
-  :local ListComment ("managed by " . $ScriptName);
+  :local ListComment ("managed by " . $  :local FwAddrListsIndex false;
   :local FwAddrListsIndex false;
 
   :for I from=1 to=5 do={
     :local FwListName ($FwListFile->0);
     :local Delim [ $FindDelim $FwListName ];
     :if ($Delim = 0) do={ :set FwListName ""; };
-    :if ([ :len $FwListName ] > 0) do={ :set FwListName [ :pick $FwListName 0 $Delim ]; }
+    :if ([ :len $FwListName ] = 0) do={ :error true; }
+    :set FwListName [ :pick $FwListName 0 $Delim ];
 
     :local FwListUrl ($FwAddrListsUrl . $FwListName);
-    :if ([ :len $FwListName ] > 0) do={
     :local CntAdd 0;
     :local CntRenew 0;
     :local CntRemove 0;
       :set Line ($Line->0);
       :local Delim [ $FindDelim $Line ];
       :if ($Delim = 0) do={ :set Line ""; };
-      :if ([ :len $Line ] = 0) do={ :set Line "#"; }
-      :if ([ :pick $Line 0 1 ] != "#") do={
+      :if ([ :len $Line ] = 0) do={ :error true; }
       :local Address;
       :if ([ :pick $Line 0 1 ] = "{" && [ :pick $Line ([ :len $Line ] - 1) ] = "}") do={
         :do {
         " - renewed: " . [ $HumanReadableNum $CntRenew 1000 ] . \
         " - removed: " . [ $HumanReadableNum $CntRemove 1000 ]);
   }
-  }
 } do={
   :global ExitError; $ExitError $ExitOK [ :jobname ] $Err;
 }
index c13df53cde3b17dca6e81ca5c4d7c4d87c399161..5f92ec7443fe2a72eb28463a28ca51610efc0625 100644 (file)
@@ -17,9 +17,9 @@
 :global GlobalFuncReady false;
 
 # Git commit id & info, expected configuration version
-:global CommitId "main/514/319099c8";
+:global CommitId "main/515/51cd6d6a";
 :global CommitTAG "unknown";
-:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 06:30:02 04.05.2026.";
+:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 06:40:03 04.05.2026.";
 
 # The variables are received right here.
 :global GlobalConfVersion 138;