mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55: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:
@@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user