summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2022-12-16 13:49:25 -0800
committerBob Halley <halley@dnspython.org>2022-12-16 13:49:25 -0800
commita49f027d1ca79884e2ada0ef2c68fd0108e44eaf (patch)
treeb4c38683019d6ac83a53e27385a570bd55814611
parent8d1fba2c1a123bf430a7b2a598f55ba43ce19244 (diff)
downloaddnspython-a49f027d1ca79884e2ada0ef2c68fd0108e44eaf.tar.gz
Properly pass source and source_port to connect() in the sync version of quic().
-rw-r--r--dns/query.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/dns/query.py b/dns/query.py
index 0eebefd..11e5fc8 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)