aboutsummaryrefslogtreecommitdiff
path: root/plugin/rewrite/rewrite_test.go
diff options
context:
space:
mode:
authorGravatar Guangming Wang <guangming.wang@daocloud.io> 2019-09-27 18:10:34 +0800
committerGravatar Miek Gieben <miek@miek.nl> 2019-09-27 11:10:34 +0100
commit8af468558766a80af7025d6480389538a1c2c0ea (patch)
tree6e86078fed390fb4e1708b5f0d6ce64918a17381 /plugin/rewrite/rewrite_test.go
parentf2df37a1fe87d9a17f31ff8db3ea9c3387d10523 (diff)
downloadcoredns-8af468558766a80af7025d6480389538a1c2c0ea.tar.gz
coredns-8af468558766a80af7025d6480389538a1c2c0ea.tar.zst
coredns-8af468558766a80af7025d6480389538a1c2c0ea.zip
cleanup code by lint (#3312)
Signed-off-by: Guangming Wang <guangming.wang@daocloud.io>
Diffstat (limited to 'plugin/rewrite/rewrite_test.go')
-rw-r--r--plugin/rewrite/rewrite_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/rewrite/rewrite_test.go b/plugin/rewrite/rewrite_test.go
index 316921954..ecab07787 100644
--- a/plugin/rewrite/rewrite_test.go
+++ b/plugin/rewrite/rewrite_test.go
@@ -422,7 +422,7 @@ func optsEqual(a, b []dns.EDNS0) bool {
if aa.SourceScope != bb.SourceScope {
return false
}
- if !bytes.Equal(aa.Address, bb.Address) {
+ if !aa.Address.Equal(bb.Address) {
return false
}
} else {