mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
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:
parent
f72aadfc59
commit
9ec8b9c03f
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue