summaryrefslogtreecommitdiff
path: root/dns/asyncquery.py
diff options
context:
space:
mode:
Diffstat (limited to 'dns/asyncquery.py')
-rw-r--r--dns/asyncquery.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dns/asyncquery.py b/dns/asyncquery.py
index 38141fe..709c246 100644
--- a/dns/asyncquery.py
+++ b/dns/asyncquery.py
@@ -199,7 +199,7 @@ async def udp(q, where, timeout=None, port=53, source=None, source_port=0,
af = dns.inet.af_for_address(where)
stuple = _source_tuple(af, source, source_port)
s = await backend.make_socket(af, socket.SOCK_DGRAM, 0, stuple)
- destination = _lltuple(af, (where, port))
+ destination = _lltuple((where, port), af)
await send_udp(s, wire, destination, expiration)
(r, received_time) = await receive_udp(s, destination, expiration,
ignore_unexpected,