From 41a828d384f2671cf8b9a23b08d33a56a3fb1eee Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Fri, 19 Jun 2020 11:15:06 -0700 Subject: [PATCH] add comment about is-response checking for DDNS --- dns/message.py | 4 ++++ 1 file changed, 4 insertions(+) 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: -- 2.47.3