From c69db0af02ddd39d969b11b49110b9cb6d0ea727 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Thu, 14 Jun 2007 02:00:40 +0000 Subject: [PATCH] only check port on multicast response --- dns/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, \ -- 2.47.3