From 68134d5d0817ebee9049d2ebd8106e220cccf25f Mon Sep 17 00:00:00 2001 From: vados-dev <192440777+vados-dev@users.noreply.github.com> Date: Mon, 4 May 2026 20:40:03 +0300 Subject: [PATCH] Autocommit in repo: ros.vados.ru, generated by owner: root, in 20:40:02 04.05.2026. --- html/AM-FwAddrLists.rsc | 38 +++++++++++++++++++------------------- html/AM-GlobalFunc.rsc | 4 ++-- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/html/AM-FwAddrLists.rsc b/html/AM-FwAddrLists.rsc index 4f2fa911a..a98290dee 100644 --- a/html/AM-FwAddrLists.rsc +++ b/html/AM-FwAddrLists.rsc @@ -83,7 +83,7 @@ :if ($tmpIndex = false) do={ :set tmpIndex [ :tolf [ $FetchHugeFiles $ScriptName $Url $CheckCerts ] ]; :if ($tmpIndex = false && $I < 5) do={ - :log warning ($ScriptName . " Failed downloading address-list index, " . $I . ". try from: " . $FwAddrListsUrl . $Index); + :log warning ($ScriptName . " Failed downloading address-list index, " . $I . ". try from: " . $Url); :delay (($I * $I) . "s"); } } @@ -105,7 +105,7 @@ :set ListName [ :pick $List 0 $Delim ]; } :log warning ($ScriptName . " Parsing address-list index entry: " . $ListName . " - Ok."); - :local Url ($ListsUrl . $ListName); + :local ListUrl ($ListsUrl . $ListName); :local CntAdd 0; :local CntRenew 0; :local CntRemove 0; @@ -117,9 +117,9 @@ :for I from=1 to=5 do={ :if ($Data = false) do={ - :set Data [ :tolf [ $FetchHugeFiles $ScriptName $Url $CheckCerts ] ]; + :set Data [ :tolf [ $FetchHugeFiles $ScriptName $ListUrl $CheckCerts ] ]; :if ($Data = false && $I < 5) do={ - :log warning ($ScriptName . " Failed downloading for list '" . $ListName . "', " . $I . ". try from: " . $Url); + :log warning ($ScriptName . " Failed downloading for list '" . $ListName . "', " . $I . ". try from: " . $ListUrl); :delay (($I * $I) . "s"); } } @@ -128,9 +128,9 @@ :if ($Data = false) do={ :set Data ""; :set Failure true; - :log warning ($ScriptName . " Failed downloading for list '" . $ListName . "' from: " . $Url); + :log warning ($ScriptName . " Failed downloading for list '" . $ListName . "' from: " . $ListUrl); } else={ - :log debug ($ScriptName . " Downloaded " . [ $HumanReadableNum [ :len $Data ] 1024 ] . "B for list '" . $ListName . "' from: " . $Url); + :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={ @@ -188,20 +188,20 @@ } :foreach Entry in=[ /ip/firewall/address-list/find where \ - list=$FwListName comment=$ListComment ] do={ + list=$ListName comment=$ListComment ] do={ :local Address [ /ip/firewall/address-list/get $Entry address ]; :local Branch [ $GetBranch $Address ]; :local TimeOut ($IPv4Addresses->$Branch->$Address); :if ([ :typeof $TimeOut ] = "time") do={ :log debug ($ScriptName . " Renewing IPv4 address " . $Address . \ - " in list '" . $FwListName . "' with " . $TimeOut . "."); + " in list '" . $ListName . "' with " . $TimeOut . "."); /ip/firewall/address-list/set $Entry timeout=$TimeOut; :set ($IPv4Addresses->$Branch->$Address); :set CntRenew ($CntRenew + 1); } else={ :if ($Failure = false) do={ :log debug ($ScriptName . " Removing IPv4 address " . $Address . \ - " from list '" . $FwListName . "."); + " from list '" . $ListName . "."); /ip/firewall/address-list/remove $Entry; :set CntRemove ($CntRemove + 1); } @@ -209,20 +209,20 @@ } :foreach Entry in=[ /ipv6/firewall/address-list/find where \ - list=$FwListName comment=$ListComment ] do={ + list=$ListName comment=$ListComment ] do={ :local Address [ /ipv6/firewall/address-list/get $Entry address ]; :local Branch [ $GetBranch $Address ]; :local TimeOut ($IPv6Addresses->$Branch->$Address); :if ([ :typeof $TimeOut ] = "time") do={ :log debug ($ScriptName . " Renewing IPv6 address " . $Address . \ - " in list '" . $FwListName . "' with " . $TimeOut . "."); + " in list '" . $ListName . "' with " . $TimeOut . "."); /ipv6/firewall/address-list/set $Entry timeout=$TimeOut; :set ($IPv6Addresses->$Branch->$Address); :set CntRenew ($CntRenew + 1); } else={ :if ($Failure = false) do={ :log debug ($ScriptName . " Removing IPv6 address " . $Address . \ - " from list '" . $FwListName . "."); + " from list '" . $ListName . "."); /ipv6/firewall/address-list/remove $Entry; :set CntRemove ($CntRemove + 1); } @@ -233,14 +233,14 @@ :log debug ($ScriptName . " Handling branch: " . $BranchName); :foreach Address,Timeout in=$Branch do={ :log debug ($ScriptName . " Adding IPv4 address " . $Address . \ - " to list '" . $FwListName . "' with " . $Timeout . "."); + " to list '" . $ListName . "' with " . $Timeout . "."); :onerror Err { - /ip/firewall/address-list/add list=$FwListName comment=$ListComment \ + /ip/firewall/address-list/add list=$ListName comment=$ListComment \ address=$Address timeout=$Timeout; :set CntAdd ($CntAdd + 1); } do={ :log warning ($ScriptName . " Failed to add IPv4 address " . $Address . \ - " to list '" . $FwListName . "': " . $Err); + " to list '" . $ListName . "': " . $Err); } } } @@ -249,19 +249,19 @@ :log debug ($ScriptName . " Handling branch: " . $BranchName); :foreach Address,Timeout in=$Branch do={ :log debug ($ScriptName . " Adding IPv6 address " . $Address . \ - " to list '" . $FwListName . "' with " . $Timeout . "."); + " to list '" . $ListName . "' with " . $Timeout . "."); :onerror Err { - /ipv6/firewall/address-list/add list=$FwListName comment=$ListComment \ + /ipv6/firewall/address-list/add list=$ListName comment=$ListComment \ address=$Address timeout=$Timeout; :set CntAdd ($CntAdd + 1); } do={ :log warning ($ScriptName . " Failed to add IPv6 address " . $Address . \ - " to list '" . $FwListName . "': " . $Err); + " to list '" . $ListName . "': " . $Err); } } } - :log info ($ScriptName . " list: " . $FwListName . \ + :log info ($ScriptName . " list: " . $ListName . \ " (" . [ $HumanReadableNum ($CntAdd + $CntRenew) 1000 ] . ")" . \ " -- added: " . [ $HumanReadableNum $CntAdd 1000 ] . \ " - renewed: " . [ $HumanReadableNum $CntRenew 1000 ] . \ diff --git a/html/AM-GlobalFunc.rsc b/html/AM-GlobalFunc.rsc index 6dba42e26..24d0b2056 100644 --- a/html/AM-GlobalFunc.rsc +++ b/html/AM-GlobalFunc.rsc @@ -17,9 +17,9 @@ :global GlobalFuncReady false; # Git commit id & info, expected configuration version -:global CommitId "main/593/61326945"; +:global CommitId "main/594/09d4bb09"; :global CommitTAG "unknown"; -:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 20:25:03 04.05.2026."; +:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 20:40:02 04.05.2026."; # The variables are received right here. :global GlobalConfVersion 140; -- 2.52.0