netwatch-dns: fix :toarray on unset doh-cert

Co-authored-by: Christian Hesse <mail@eworm.de>
This commit is contained in:
Filipe Santos 2026-07-26 13:58:16 +12:00 committed by Christian Hesse
parent 608499bc89
commit b6398422d0

View file

@ -103,7 +103,7 @@
}
:foreach DohServer in=$DohServers do={
:foreach DohCert in=[ :toarray delimiter=":" ($DohServer->"doh-cert") ] do={
:foreach DohCert in=[ :toarray delimiter=":" [ :tostr ($DohServer->"doh-cert") ] ] do={
:if ([ :len $DohCert ] > 0) do={
:if ([ $CertificateAvailable $DohCert "fetch" ] = false || \
[ $CertificateAvailable $DohCert "dns" ] = false) do={