: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 ] . \
: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;