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

index 770b24ff96363ef88a952eebbd4eaeac0e6306b9..4a6cb5f97886a677bb4c9c7e5c5ccbc77e9c7890 100644 (file)
@@ -71,7 +71,6 @@
     :global EitherOr;
     :return [ :pick [ :convert transform=md5 to=hex [ :pick $1 0 [ $EitherOr [ :find $1 "/" ] [ :len $1 ] ] ] ] 0 2 ];
   }
-  :put [$GetBranch];
   
   :if ([ $ScriptLock $ScriptName ] = false) do={
     :set ExitOK true;
       :if ([ :len ($List->"cert") ] > 0) do={
         :set CheckCertificate true;
         :if ([ $CertificateAvailable ($List->"cert") "fetch" ] = false) do={
-          $LogPrint warning $ScriptName ("Downloading required certificate (" . $FwListName . \
+          :log warning ($ScriptName . " Downloading required certificate (" . $FwListName . \
               " / " . $List->"url" . ") failed, trying anyway.");
         }
       }
           :set Data [ :tolf [ $FetchHuge $ScriptName ($List->"url") $CheckCertificate ] ];
           :if ($Data = false) do={
             :if ($I < 5) do={
-              $LogPrint debug $ScriptName ("Failed downloading for list '" . $FwListName . \
+              :log debug ($ScriptName . " Failed downloading for list '" . $FwListName . \
                   "', " . $I . ". try from: " . $List->"url");
               :delay (($I * $I) . "s");
             }
       :if ($Data = false) do={
         :set Data "";
         :set Failure true;
-        $LogPrint warning $ScriptName ("Failed downloading for list '" . $FwListName . \
+        :log warning ($ScriptName . " Failed downloading for list '" . $FwListName . \
             "' from: " . $List->"url");
       } else={
-        $LogPrint debug $ScriptName ("Downloaded " . [ $HumanReadableNum [ :len $Data ] 1024 ] . \
+        :log debug ($ScriptName . " Downloaded " . [ $HumanReadableNum [ :len $Data ] 1024 ] . \
             "B for list '" . $FwListName . "' from: " . $List->"url");
       }
 
             :set ($IPv6Addresses->$Branch->$Address) $TimeOut;
             :error true;
           }
-        } on-error={ }
+        } on-error={:log error ($ScriptName . " Failed parsing address: " . $Line->0);}
       }
     }
 
               address=$Address timeout=$Timeout;
           :set CntAdd ($CntAdd + 1);
         } do={
-          $LogPrint warning $ScriptName ("Failed to add IPv4 address " . $Address . \
+          :log warning ($ScriptName . " Failed to add IPv4 address " . $Address . \
               " to list '" . $FwListName . "': " . $Err);
         }
       }
               address=$Address timeout=$Timeout;
           :set CntAdd ($CntAdd + 1);
         } do={
-          $LogPrint warning $ScriptName ("Failed to add IPv6 address " . $Address . \
+          :log warning ($ScriptName . " Failed to add IPv6 address " . $Address . \
               " to list '" . $FwListName . "': " . $Err);
         }
       }
     }
 
-    $LogPrint info $ScriptName ("list: " . $FwListName . \
+    :log info ($ScriptName . " list: " . $FwListName . \
         " (" . [ $HumanReadableNum ($CntAdd + $CntRenew) 1000 ] . ")" . \
         " -- added: " . [ $HumanReadableNum $CntAdd 1000 ] . \
         " - renewed: " . [ $HumanReadableNum $CntRenew 1000 ] . \
index ae09e6e2bfbdb6a064e685ea6a7b1fba77495e0d..42df6d5fda0ba225344dd424b34652f14f214906 100644 (file)
@@ -17,9 +17,9 @@
 :global GlobalFuncReady false;
 
 # Git commit id & info, expected configuration version
-:global CommitId "main/352/ae7bad3c";
+:global CommitId "main/353/35bb229e";
 :global CommitTAG "unknown";
-:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 05:50:02 01.05.2026.";
+:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 06:05:03 01.05.2026.";
 
 # The variables are received right here.
 :global GlobalConfVersion 138;