mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-01-14 21:19:32 +00:00
netwatch-dns: check the certificate is available for fetch
That trust is not needed for DNS functionality (that was checked before), but for our hacky check with fetch.
This commit is contained in:
parent
2b8dfec2f7
commit
6fd28bf8f7
1 changed files with 2 additions and 1 deletions
|
|
@ -104,7 +104,8 @@
|
|||
|
||||
:foreach DohServer in=$DohServers 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.");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue