From a49f027d1ca79884e2ada0ef2c68fd0108e44eaf Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Fri, 16 Dec 2022 13:49:25 -0800 Subject: [PATCH] Properly pass source and source_port to connect() in the sync version of quic(). --- dns/query.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dns/query.py b/dns/query.py index 0eebefd1..11e5fc8c 100644 --- a/dns/query.py +++ b/dns/query.py @@ -1070,8 +1070,8 @@ def quic( where: str, timeout: Optional[float] = None, port: int = 853, - source: Optional[str] = None, # pylint: disable=unused-argument - source_port: int = 0, # pylint: disable=unused-argument + source: Optional[str] = None, + source_port: int = 0, one_rr_per_rrset: bool = False, ignore_trailing: bool = False, connection: Optional[dns.quic.SyncQuicConnection] = None, @@ -1126,7 +1126,7 @@ def quic( with manager: if not connection: - the_connection = the_manager.connect(where, port) + the_connection = the_manager.connect(where, port, source, source_port) start = time.time() with the_connection.make_stream() as stream: stream.send(wire, True) -- 2.47.3