Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Coredns
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
Coredns
Commits
7d629a0b
Commit
7d629a0b
authored
Jan 10, 2022
by
coredns[bot]
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto go fmt
Signed-off-by:
coredns[bot]
<
bot@bot.coredns.io
>
parent
56ee0efa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
plugin/dns64/dns64_test.go
plugin/dns64/dns64_test.go
+4
-4
No files found.
plugin/dns64/dns64_test.go
View file @
7d629a0b
...
@@ -33,28 +33,28 @@ func TestRequestShouldIntercept(t *testing.T) {
...
@@ -33,28 +33,28 @@ func TestRequestShouldIntercept(t *testing.T) {
name
:
"should intercept request from IPv6 network - AAAA - IN"
,
name
:
"should intercept request from IPv6 network - AAAA - IN"
,
allowIpv4
:
true
,
allowIpv4
:
true
,
remoteIP
:
"::1"
,
remoteIP
:
"::1"
,
msg
:
new
(
dns
.
Msg
)
.
SetQuestion
(
"example.com"
,
dns
.
TypeAAAA
),
msg
:
new
(
dns
.
Msg
)
.
SetQuestion
(
"example.com"
,
dns
.
TypeAAAA
),
want
:
true
,
want
:
true
,
},
},
{
{
name
:
"should intercept request from IPv4 network - AAAA - IN"
,
name
:
"should intercept request from IPv4 network - AAAA - IN"
,
allowIpv4
:
true
,
allowIpv4
:
true
,
remoteIP
:
"127.0.0.1"
,
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
,
want
:
true
,
},
},
{
{
name
:
"should not intercept request from IPv4 network - AAAA - IN"
,
name
:
"should not intercept request from IPv4 network - AAAA - IN"
,
allowIpv4
:
false
,
allowIpv4
:
false
,
remoteIP
:
"127.0.0.1"
,
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
,
want
:
false
,
},
},
{
{
name
:
"should not intercept request from IPv6 network - A - IN"
,
name
:
"should not intercept request from IPv6 network - A - IN"
,
allowIpv4
:
false
,
allowIpv4
:
false
,
remoteIP
:
"::1"
,
remoteIP
:
"::1"
,
msg
:
new
(
dns
.
Msg
)
.
SetQuestion
(
"example.com"
,
dns
.
TypeA
),
msg
:
new
(
dns
.
Msg
)
.
SetQuestion
(
"example.com"
,
dns
.
TypeA
),
want
:
false
,
want
:
false
,
},
},
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment