fw-addr-lists: one more interation on download failure...

... with even more delay. This script is called with long interval from
scheduler, so should not be an issue.
This commit is contained in:
Christian Hesse 2024-03-26 08:37:07 +01:00
parent f72aadfc59
commit 9ec8b9c03f

View file

@ -61,13 +61,13 @@
}
}
:for I from=1 to=4 do={
:for I from=1 to=5 do={
:if ($Data = false) do={
:do {
:set Data ([ /tool/fetch check-certificate=$CheckCertificate output=user \
http-header-field=({ [ $FetchUserAgent $ScriptName ] }) ($List->"url") as-value ]->"data");
} on-error={
:if ($I < 4) do={
:if ($I < 5) do={
$LogPrint debug $ScriptName ("Failed downloading, " . $I . ". try: " . $List->"url");
:delay (($I * $I) . "s");
}