diff options
| author | Bob Halley <halley@play-bow.org> | 2020-06-28 18:53:20 -0700 |
|---|---|---|
| committer | Bob Halley <halley@play-bow.org> | 2020-06-28 18:53:20 -0700 |
| commit | bf953169dc24d1e9bfe7805a7530a8347c24fab4 (patch) | |
| tree | d123f0a15de78cf1394e56adaf185cd056b26b7d | |
| parent | d90b32a5d1f75af87f107f663d2afcef95eab6d1 (diff) | |
| download | dnspython-bf953169dc24d1e9bfe7805a7530a8347c24fab4.tar.gz | |
Remove no longer needed code to activate EDNS if setting an extended
rcode and EDNS has not previously been activated. The code is no longer
needed as setting ednsflags to a nonzero value will automatically make
an opt RR and enable EDNS.
| -rw-r--r-- | dns/message.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/dns/message.py b/dns/message.py index 0f4a401..cc1de46 100644 --- a/dns/message.py +++ b/dns/message.py @@ -624,8 +624,6 @@ class Message: self.flags |= value self.ednsflags &= 0x00FFFFFF self.ednsflags |= evalue - if self.ednsflags != 0 and self.edns < 0: - self.edns = 0 def opcode(self): """Return the opcode. |
