From 066101a9d9e27d01c23850fff4720906322aa9ab Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Fri, 19 Jun 2009 11:56:25 +0100 Subject: _addresses_equal() needs the af --- dns/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dns/query.py b/dns/query.py index 81a78b4..15b5a90 100644 --- a/dns/query.py +++ b/dns/query.py @@ -135,7 +135,7 @@ def udp(q, where, timeout=None, port=53, af=None, source=None, source_port=0, while 1: _wait_for_readable(s, expiration) (wire, from_address) = s.recvfrom(65535) - if _addresses_equal(from_address, destination) or \ + if _addresses_equal(af, from_address, destination) or \ (dns.inet.is_multicast(where) and \ from_address[1:] == destination[1:]): break -- cgit v1.2.1