aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Sandeep Rajan <srajan@infoblox.com> 2018-11-13 16:46:48 -0500
committerGravatar Chris O'Haver <cohaver@infoblox.com> 2018-11-13 16:46:48 -0500
commitc3d69bec3177511d8315529ce734a713437b1bf0 (patch)
treeb38d3caab566012e420e990738f31b78a2331798
parent94c9aae323bc544fa96693d24a24a4059d6f9b78 (diff)
downloadcoredns-c3d69bec3177511d8315529ce734a713437b1bf0.tar.gz
coredns-c3d69bec3177511d8315529ce734a713437b1bf0.tar.zst
coredns-c3d69bec3177511d8315529ce734a713437b1bf0.zip
fix formatting (#2302)
-rw-r--r--plugin/auto/auto.go4
-rw-r--r--plugin/dnssec/dnskey.go4
2 files changed, 4 insertions, 4 deletions
diff --git a/plugin/auto/auto.go b/plugin/auto/auto.go
index 512a7f812..da4543cd7 100644
--- a/plugin/auto/auto.go
+++ b/plugin/auto/auto.go
@@ -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
}
diff --git a/plugin/dnssec/dnskey.go b/plugin/dnssec/dnskey.go
index 4576306ef..ea769514d 100644
--- a/plugin/dnssec/dnskey.go
+++ b/plugin/dnssec/dnskey.go
@@ -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
}