summaryrefslogtreecommitdiff
path: root/dns/_curio_backend.py
diff options
context:
space:
mode:
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):