mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-01-28 20:09:34 +00:00
netwatch-dns: use :continue in loop
This commit is contained in:
parent
2c71f62b7d
commit
4f64d4d335
1 changed files with 1 additions and 2 deletions
|
|
@ -121,9 +121,9 @@
|
||||||
} do={
|
} do={
|
||||||
$LogPrint warning $ScriptName ("Request to DoH server " . ($DohServer->"doh-url") . \
|
$LogPrint warning $ScriptName ("Request to DoH server " . ($DohServer->"doh-url") . \
|
||||||
" failed: " . $Err);
|
" failed: " . $Err);
|
||||||
|
:continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
:if ($Data != false) do={
|
|
||||||
:if ([ :typeof [ :find $Data "doh-check-OK" ] ] = "num") do={
|
:if ([ :typeof [ :find $Data "doh-check-OK" ] ] = "num") do={
|
||||||
/ip/dns/set use-doh-server=($DohServer->"doh-url") verify-doh-cert=yes;
|
/ip/dns/set use-doh-server=($DohServer->"doh-url") verify-doh-cert=yes;
|
||||||
:if ([ /certificate/settings/get crl-use ] = true) do={
|
:if ([ /certificate/settings/get crl-use ] = true) do={
|
||||||
|
|
@ -137,7 +137,6 @@
|
||||||
($DohServer->"doh-url"));
|
($DohServer->"doh-url"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} do={
|
} do={
|
||||||
:global ExitOnError; $ExitOnError [ :jobname ] $Err;
|
:global ExitOnError; $ExitOnError [ :jobname ] $Err;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue