diff options
| author | Brian Wellington <bwelling@xbill.org> | 2020-07-07 13:42:48 -0700 |
|---|---|---|
| committer | Brian Wellington <bwelling@xbill.org> | 2020-07-07 13:42:48 -0700 |
| commit | 172c357dc70420a2ce2fbe88a18ee439b945c3be (patch) | |
| tree | c227806b33e454a4799892f92aa2c0649066e898 /dns/message.py | |
| parent | 0a6b2c26056ce6f7962e52869b1809e2c29d7dbc (diff) | |
| download | dnspython-172c357dc70420a2ce2fbe88a18ee439b945c3be.tar.gz | |
Fix Message ednsflags propery setter.
Setting ednsflags to 0 shouldn't unconditionally enable EDNS.
Diffstat (limited to 'dns/message.py')
| -rw-r--r-- | dns/message.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dns/message.py b/dns/message.py index 1bb02ae..60b74c1 100644 --- a/dns/message.py +++ b/dns/message.py @@ -614,7 +614,7 @@ class Message: def ednsflags(self, v): if self.opt: self.opt.ttl = v - else: + elif v: self.opt = self._make_opt(v) @property |
