:global HumanReadableNum;
:global IfThenElse;
:global LogPrint;
-
+ :global Grep;
+ :local ValidChars "0123456789.:/ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-";
+
:global NetMask4;
:global NetMask6;
:global ScriptLock;
:local FindDelim;
:set FindDelim do={
:local Length [ :tostr $1 ];
- :local ValidChars "0123456789.:/ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-";
:for I from=0 to=([ :len $Length ] - 1) do={
:if ([ :typeof [ :find $ValidChars [ :pick $Length $I ] ] ] != "num") do={
:return $I;
:foreach FwListFile in=[ :deserialize $tmpIndex delimiter="\n" from=dsv options=dsv.plain ] do={
:local FwListName ($FwListFile->0);
+ :local currentListName [ $Grep $FwListName $ValidChars ];
+ :log warning ($ScriptName . " Parsing address-list index entry: " . $currentListName);
+
:local Delim [ $FindDelim $FwListName ];
:if ($Delim = 0) do={ :set FwListName ""; };
- :if ([ :len $FwListName ] = 0) do={1
+ :if ([ :len $FwListName ] = 0) do={
:log error ($ScriptName . " Failed parsing address-list index entry: " . $FwListFile->0);
:error true;
}
:global GlobalFuncReady false;
# Git commit id & info, expected configuration version
-:global CommitId "main/562/cda75821";
+:global CommitId "main/563/53a25a33";
:global CommitTAG "unknown";
-:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 14:00:03 04.05.2026.";
+:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 14:10:03 04.05.2026.";
# The variables are received right here.
:global GlobalConfVersion 140;