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:
Christian Hesse 2026-01-13 21:39:54 +01:00
parent 2b8dfec2f7
commit 6fd28bf8f7

View file

@ -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.");
}
}