- Fix dns_lookup() crash when trying to lookup unknown name.

This commit is contained in:
2026-10-17 22:25:50 +02:00
parent 8a1ea5fdad
commit 6317958572
3 changed files with 13 additions and 2 deletions

View File

@@ -239,7 +239,7 @@ dns_lookup()
case ${dl_type}
in
"A")
dns_value="$( dig +short ${dl_key} 2>/dev/null | ip_ip_filter)"
dns_value="$( dig +short ${dl_key} 2>/dev/null | ip_ip_filter || true)"
;;
"PTR")