diff options
-rw-r--r-- | plugin/dns64/dns64_test.go | 8 |
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, }, } |