]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
only check port on multicast response
authorBob Halley <halley@dnspython.org>
Thu, 14 Jun 2007 02:00:40 +0000 (02:00 +0000)
committerBob Halley <halley@dnspython.org>
Thu, 14 Jun 2007 02:00:40 +0000 (02:00 +0000)
dns/query.py

index 785e4230b0a644896bfe2014a79c1705be1dc599..ed4eff3ac739939e7b8738eeaa150a10a3aeae7c 100644 (file)
@@ -119,7 +119,7 @@ def udp(q, where, timeout=None, port=53, af=None, source=None, source_port=0,
             (wire, from_address) = s.recvfrom(65535)
             if from_address == destination or \
                (dns.inet.is_multicast(where) and \
-                from_address[1:] == destination[1:]):
+                from_address[1] == destination[1]):
                 break
             if not ignore_unexpected:
                 raise UnexpectedSource, \