:local ScriptName [ :jobname ];
:global GlobalScriptsUrl;
- :local FwAddrListsUrl ($GlobalScriptsUrl . "fw-addr-lists.d/");
- :local FwAddrListsIndexUrl ($FwAddrListsUrl . "index");
+ :local FwAddrListsDirName ("fw-addr-lists.d/" . [/system/identity/get name] "/");
+ :local FwAddrListsUrl ($GlobalScriptsUrl . $FwAddrListsDirName);
+ :local Index "index.lst";
:local FwAddrListTimeOut 1d;
:local CheckCerts false;
:local FetchMode "https-only";
}
:local ListComment ("managed by " . $ScriptName);
- :local FwAddrListsIndex false;
+ :local tmpIndex false;
+ :local IndexUrl ($FwAddrListsUrl . $Index);
:for I from=1 to=5 do={
- :if ($FwAddrListsIndex = false) do={
- :set FwAddrListsIndex [ :tolf [ $FetchLargeFiles $ScriptName $FwAddrListsIndexUrl $CheckCerts ] ];
- :if ($FwAddrListsIndex = false && $I < 5) do={
- :log warning ($ScriptName . " Failed downloading address-list index, " . $I . ". try from: " . $FwAddrListsIndexUrl);
+ :if ($tmpIndex = false) do={
+ :set tmpIndex [ :tolf [ $FetchLargeFiles $ScriptName $IndexUrl $CheckCerts ] ];
+ :if ($tmpIndex = false && $I < 5) do={
+ :log warning ($ScriptName . " Failed downloading address-list index, " . $I . ". try from: " . $IndexUrl);
:delay (($I * $I) . "s");
}
}
}
- :if ($FwAddrListsIndex = false) do={
- :log warning ($ScriptName . " Failed downloading address-list index from: " . $FwAddrListsIndexUrl);
- :set FwAddrListsIndex "";
+ :if ($tmpIndex = false) do={
+ :log warning ($ScriptName . " Failed downloading address-list index from: " . $IndexUrl);
+ :set tmpIndex "";
}
- :foreach FwListFile in=[ :deserialize $FwAddrListsIndex delimiter="\n" from=dsv options=dsv.plain ] do={
+ :foreach FwListFile in=[ :deserialize $tmpIndex delimiter="\n" from=dsv options=dsv.plain ] do={
:local FwListName ($FwListFile->0);
:local Delim [ $FindDelim $FwListName ];
:if ($Delim = 0) do={ :set FwListName ""; };
:global GlobalFuncReady false;
# Git commit id & info, expected configuration version
-:global CommitId "main/554/f4442323";
+:global CommitId "main/555/40c9fb70";
:global CommitTAG "unknown";
-:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 12:20:03 04.05.2026.";
+:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 12:45:02 04.05.2026.";
# The variables are received right here.
:global GlobalConfVersion 140;