summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2007-06-14 02:00:40 +0000
committerBob Halley <halley@dnspython.org>2007-06-14 02:00:40 +0000
commitc69db0af02ddd39d969b11b49110b9cb6d0ea727 (patch)
tree2f70ce6fc8795e749c8483e52ff162ba6bd1713f
parentf26fb84cd3b158ffb48021a5be889fed2937d9a7 (diff)
downloaddnspython-c69db0af02ddd39d969b11b49110b9cb6d0ea727.tar.gz
only check port on multicast response
-rw-r--r--dns/query.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dns/query.py b/dns/query.py
index 785e423..ed4eff3 100644
--- a/dns/query.py
+++ b/dns/query.py
@@ -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, \