netwatch-dns: actually we need the certificate for fetch as well

This commit is contained in:
Christian Hesse 2026-01-13 21:39:54 +01:00
parent 2b8dfec2f7
commit 121cd35688

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