summaryrefslogtreecommitdiff
path: root/dns/_trio_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/_trio_backend.py
parentdfff63e1d4cefc8af15abe37e9b8cce39951ac72 (diff)
downloaddnspython-async.tar.gz
Change parameter order of low_level_address_tuple; add test coverage.async
Diffstat (limited to 'dns/_trio_backend.py')
-rw-r--r--dns/_trio_backend.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/dns/_trio_backend.py b/dns/_trio_backend.py
index 418639c..cfb0e1d 100644
--- a/dns/_trio_backend.py
+++ b/dns/_trio_backend.py
@@ -81,10 +81,10 @@ class Backend(dns._asyncbackend.Backend):
stream = None
try:
if source:
- await s.bind(_lltuple(af, source))
+ await s.bind(_lltuple(source, af))
if socktype == socket.SOCK_STREAM:
with _maybe_timeout(timeout):
- await s.connect(_lltuple(af, destination))
+ await s.connect(_lltuple(destination, af))
except Exception:
s.close()
raise