]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
The DNSKEY flags field is now made a Flag instance by the constructor.
authorBob Halley <halley@dnspython.org>
Tue, 24 Jan 2023 16:37:37 +0000 (08:37 -0800)
committerBob Halley <halley@dnspython.org>
Tue, 24 Jan 2023 16:37:37 +0000 (08:37 -0800)
dns/rdtypes/dnskeybase.py

index 1d17f70f767d5efd0c9e9a0d61a38aef9f2c1e76..209251492a7dfeed681c007564e2caed94cd8ced 100644 (file)
@@ -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)