From: Bob Halley Date: Tue, 24 Jan 2023 16:37:37 +0000 (-0800) Subject: The DNSKEY flags field is now made a Flag instance by the constructor. X-Git-Tag: v2.4.0rc1~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=294693869c04a09e06924009a081cb79bde2d2a4;p=thirdparty%2Fdnspython.git The DNSKEY flags field is now made a Flag instance by the constructor. --- diff --git a/dns/rdtypes/dnskeybase.py b/dns/rdtypes/dnskeybase.py index 1d17f70f..20925149 100644 --- a/dns/rdtypes/dnskeybase.py +++ b/dns/rdtypes/dnskeybase.py @@ -43,7 +43,7 @@ class DNSKEYBase(dns.rdata.Rdata): def __init__(self, rdclass, rdtype, flags, protocol, algorithm, key): super().__init__(rdclass, rdtype) - self.flags = self._as_uint16(flags) + self.flags = Flag(self._as_uint16(flags)) self.protocol = self._as_uint8(protocol) self.algorithm = dns.dnssectypes.Algorithm.make(algorithm) self.key = self._as_bytes(key)