mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-03-04 13:09:37 +00:00
netwatch-dns: actually we need the certificate for fetch as well
This commit is contained in:
parent
2b8dfec2f7
commit
121cd35688
1 changed files with 2 additions and 1 deletions
|
|
@ -104,7 +104,8 @@
|
||||||
|
|
||||||
:foreach DohServer in=$DohServers do={
|
:foreach DohServer in=$DohServers do={
|
||||||
:if ([ :len ($DohServer->"doh-cert") ] > 0) do={
|
:if ([ :len ($DohServer->"doh-cert") ] > 0) do={
|
||||||
:if ([ $CertificateAvailable ($DohServer->"doh-cert") "dns" ] = false) do={
|
:if ([ $CertificateAvailable ($DohServer->"doh-cert") "fetch" ] = false || \
|
||||||
|
[ $CertificateAvailable ($DohServer->"doh-cert") "dns" ] = false) do={
|
||||||
$LogPrint warning $ScriptName ("Downloading certificate failed, trying without.");
|
$LogPrint warning $ScriptName ("Downloading certificate failed, trying without.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue