mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 08:44:17 -04:00
fix formatting (#2302)
This commit is contained in:
committed by
Chris O'Haver
parent
94c9aae323
commit
c3d69bec31
@@ -31,9 +31,9 @@ type (
|
||||
re *regexp.Regexp
|
||||
|
||||
// In the future this should be something like ZoneMeta that contains all this stuff.
|
||||
transferTo []string
|
||||
transferTo []string
|
||||
ReloadInterval time.Duration
|
||||
upstream upstream.Upstream // Upstream for looking up names during the resolution process.
|
||||
upstream upstream.Upstream // Upstream for looking up names during the resolution process.
|
||||
|
||||
duration time.Duration
|
||||
}
|
||||
|
||||
@@ -81,10 +81,10 @@ func (d Dnssec) getDNSKEY(state request.Request, zone string, do bool, server st
|
||||
|
||||
// Return true iff this is a zone key with the SEP bit unset. This implies a ZSK (rfc4034 2.1.1).
|
||||
func (k DNSKEY) isZSK() bool {
|
||||
return k.K.Flags & (1<<8) == (1<<8) && k.K.Flags & 1 == 0
|
||||
return k.K.Flags&(1<<8) == (1<<8) && k.K.Flags&1 == 0
|
||||
}
|
||||
|
||||
// Return true iff this is a zone key with the SEP bit set. This implies a KSK (rfc4034 2.1.1).
|
||||
func (k DNSKEY) isKSK() bool {
|
||||
return k.K.Flags & (1<<8) == (1<<8) && k.K.Flags & 1 == 1
|
||||
return k.K.Flags&(1<<8) == (1<<8) && k.K.Flags&1 == 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user