python-dns/0002-For-the-Tudoor-fix-we-also-need-the-UDP-nameserver-t.patch
2024-04-24 17:01:11 +08:00

36 lines
1.1 KiB
Diff

From e093299a49967696b1c58b68e4767de5031a3e46 Mon Sep 17 00:00:00 2001
From: Bob Halley <halley@dnspython.org>
Date: Fri, 16 Feb 2024 05:47:35 -0800
Subject: [PATCH] For the Tudoor fix, we also need the UDP nameserver to
ignore_unexpected.
(cherry picked from commit 5a441b9854425c4e23abb8f91973361fe8401e33)
---
dns/nameserver.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dns/nameserver.py b/dns/nameserver.py
index 030057b..5dbb4e8 100644
--- a/dns/nameserver.py
+++ b/dns/nameserver.py
@@ -116,6 +116,7 @@ class Do53Nameserver(AddressAndPortNameserver):
one_rr_per_rrset=one_rr_per_rrset,
ignore_trailing=ignore_trailing,
ignore_errors=True,
+ ignore_unexpected=True,
)
return response
@@ -155,6 +156,7 @@ class Do53Nameserver(AddressAndPortNameserver):
one_rr_per_rrset=one_rr_per_rrset,
ignore_trailing=ignore_trailing,
ignore_errors=True,
+ ignore_unexpected=True,
)
return response
--
2.39.1