From: Bob Halley Date: Fri, 16 Dec 2022 21:49:25 +0000 (-0800) Subject: Properly pass source and source_port to connect() in the sync version of quic(). X-Git-Tag: v2.3.0rc1~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a49f027d1ca79884e2ada0ef2c68fd0108e44eaf;p=thirdparty%2Fdnspython.git Properly pass source and source_port to connect() in the sync version of quic(). --- 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)