aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorGravatar coredns[bot] <bot@bot.coredns.io> 2022-01-10 10:28:56 +0000
committerGravatar coredns[bot] <bot@bot.coredns.io> 2022-01-10 10:28:56 +0000
commit7d629a0b9e4c41a802522aeb2f9eff6315960571 (patch)
treee641c603c1c5eee41688eda3d32d21bd34a959ec /plugin
parent56ee0efa69b74aa0fba1292225f9086180e3e4c7 (diff)
downloadcoredns-7d629a0b9e4c41a802522aeb2f9eff6315960571.tar.gz
coredns-7d629a0b9e4c41a802522aeb2f9eff6315960571.tar.zst
coredns-7d629a0b9e4c41a802522aeb2f9eff6315960571.zip
auto go fmt
Signed-off-by: coredns[bot] <bot@bot.coredns.io>
Diffstat (limited to 'plugin')
-rw-r--r--plugin/dns64/dns64_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugin/dns64/dns64_test.go b/plugin/dns64/dns64_test.go
index 5db83f163..54d63439a 100644
--- a/plugin/dns64/dns64_test.go
+++ b/plugin/dns64/dns64_test.go
@@ -33,28 +33,28 @@ func TestRequestShouldIntercept(t *testing.T) {
name: "should intercept request from IPv6 network - AAAA - IN",
allowIpv4: true,
remoteIP: "::1",
- msg: new(dns.Msg).SetQuestion("example.com", dns.TypeAAAA),
+ msg: new(dns.Msg).SetQuestion("example.com", dns.TypeAAAA),
want: true,
},
{
name: "should intercept request from IPv4 network - AAAA - IN",
allowIpv4: true,
remoteIP: "127.0.0.1",
- msg: new(dns.Msg).SetQuestion("example.com", dns.TypeAAAA),
+ msg: new(dns.Msg).SetQuestion("example.com", dns.TypeAAAA),
want: true,
},
{
name: "should not intercept request from IPv4 network - AAAA - IN",
allowIpv4: false,
remoteIP: "127.0.0.1",
- msg: new(dns.Msg).SetQuestion("example.com", dns.TypeAAAA),
+ msg: new(dns.Msg).SetQuestion("example.com", dns.TypeAAAA),
want: false,
},
{
name: "should not intercept request from IPv6 network - A - IN",
allowIpv4: false,
remoteIP: "::1",
- msg: new(dns.Msg).SetQuestion("example.com", dns.TypeA),
+ msg: new(dns.Msg).SetQuestion("example.com", dns.TypeA),
want: false,
},
}