From: Bob Halley Date: Thu, 14 Jun 2007 02:00:40 +0000 (+0000) Subject: only check port on multicast response X-Git-Tag: v1.6.0~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c69db0af02ddd39d969b11b49110b9cb6d0ea727;p=thirdparty%2Fdnspython.git only check port on multicast response --- diff --git a/dns/query.py b/dns/query.py index 785e4230..ed4eff3a 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, \