summaryrefslogtreecommitdiff
path: root/dns/_curio_backend.py
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2020-06-13 11:40:54 -0700
committerBob Halley <halley@dnspython.org>2020-06-13 11:40:54 -0700
commit92b5b2d4a660a509aba0b818cf1889eb6d76c09e (patch)
tree19fa9ad78c521a2e41237a54637cc40c01006690 /dns/_curio_backend.py
parentdfff63e1d4cefc8af15abe37e9b8cce39951ac72 (diff)
downloaddnspython-async.tar.gz
Change parameter order of low_level_address_tuple; add test coverage.async
Diffstat (limited to 'dns/_curio_backend.py')
-rw-r--r--dns/_curio_backend.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/dns/_curio_backend.py b/dns/_curio_backend.py
index 836273b..d5eba68 100644
--- a/dns/_curio_backend.py
+++ b/dns/_curio_backend.py
@@ -77,14 +77,14 @@ class Backend(dns._asyncbackend.Backend):
s = curio.socket.socket(af, socktype, proto)
try:
if source:
- s.bind(_lltuple(af, source))
+ s.bind(_lltuple(source, af))
except Exception:
await s.close()
raise
return DatagramSocket(s)
elif socktype == socket.SOCK_STREAM:
if source:
- source_addr = (_lltuple(af, source))
+ source_addr = _lltuple(source, af)
else:
source_addr = None
async with _maybe_timeout(timeout):