]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Fix setting source for sync/trio quic queries.
authorBrian Wellington <bwelling@xbill.org>
Thu, 7 Dec 2023 17:59:08 +0000 (09:59 -0800)
committerBrian Wellington <bwelling@xbill.org>
Thu, 7 Dec 2023 18:01:06 +0000 (10:01 -0800)
commit186922d1f083d52401d0cbd13a0d1b929b3db3cb
tree66ba81dc77f649aa5908af0eb04ad08b84a2364b
parent860ba4dee00b62f93f84c509f287e423bbebadc5
Fix setting source for sync/trio quic queries.

The sync code called connect() before bind(), which meant that any
attempt to specify a source resulted in an exception.  This switches the
order.

The trio code called a nonexistent method in the wrong place, so didn't
work at all.  This fixes the call and puts it in the right place.

The asyncio code worked, so no changes were needed.
dns/quic/_sync.py
dns/quic/_trio.py