From: Bob Halley Date: Fri, 19 Jun 2020 18:15:06 +0000 (-0700) Subject: add comment about is-response checking for DDNS X-Git-Tag: v2.0.0rc1~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41a828d384f2671cf8b9a23b08d33a56a3fb1eee;p=thirdparty%2Fdnspython.git add comment about is-response checking for DDNS --- diff --git a/dns/message.py b/dns/message.py index 85788d84..c5fc3ac8 100644 --- a/dns/message.py +++ b/dns/message.py @@ -239,6 +239,10 @@ class Message: dns.rcode.NOERROR: return True if dns.opcode.is_update(self.flags): + # This is assuming the "sender doesn't include anything + # from the update", but we don't care to check the other + # case, which is that all the sections are returned and + # identical. return True for n in self.question: if n not in other.question: