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
e78d9a78
Commit
e78d9a78
authored
Feb 20, 2019
by
Nguyen Phuong An
Committed by
Paul G
Feb 20, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove some duplicate worlds (#2582)
Signed-off-by:
Nguyen Phuong An
<
AnNP@vn.fujitsu.com
>
parent
3c23aac2
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
9 additions
and
9 deletions
+9
-9
core/dnsserver/config.go
core/dnsserver/config.go
+1
-1
core/dnsserver/server_grpc.go
core/dnsserver/server_grpc.go
+1
-1
plugin/auto/walk.go
plugin/auto/walk.go
+1
-1
plugin/auto/zone.go
plugin/auto/zone.go
+1
-1
plugin/file/secondary_test.go
plugin/file/secondary_test.go
+1
-1
plugin/kubernetes/kubernetes_test.go
plugin/kubernetes/kubernetes_test.go
+1
-1
plugin/rewrite/class.go
plugin/rewrite/class.go
+1
-1
plugin/rewrite/type.go
plugin/rewrite/type.go
+1
-1
plugin/test/helpers.go
plugin/test/helpers.go
+1
-1
No files found.
core/dnsserver/config.go
View file @
e78d9a78
...
...
@@ -21,7 +21,7 @@ type Config struct {
// The port to listen on.
Port
string
// Root points to a base directory we
we
find user defined "things".
// Root points to a base directory we find user defined "things".
// First consumer is the file plugin to looks for zone files in this place.
Root
string
...
...
core/dnsserver/server_grpc.go
View file @
e78d9a78
...
...
@@ -154,7 +154,7 @@ type gRPCresponse struct {
}
// Write is the hack that makes this work. It does not actually write the message
// but returns the bytes we need to
to
write in r. We can then pick this up in Query
// but returns the bytes we need to write in r. We can then pick this up in Query
// and write a proper protobuf back to the client.
func
(
r
*
gRPCresponse
)
Write
(
b
[]
byte
)
(
int
,
error
)
{
r
.
Msg
=
new
(
dns
.
Msg
)
...
...
plugin/auto/walk.go
View file @
e78d9a78
...
...
@@ -87,7 +87,7 @@ func (a Auto) Walk() error {
return
nil
}
// matches
matches re to filename, if is
is a match, the subexpression will be used to expand
// matches
re to filename, if it
is a match, the subexpression will be used to expand
// template to an origin. When match is true that origin is returned. Origin is fully qualified.
func
matches
(
re
*
regexp
.
Regexp
,
filename
,
template
string
)
(
match
bool
,
origin
string
)
{
base
:=
filepath
.
Base
(
filename
)
...
...
plugin/auto/zone.go
View file @
e78d9a78
...
...
@@ -56,7 +56,7 @@ func (z *Zones) Add(zo *file.Zone, name string) {
z
.
Unlock
()
}
// Remove removes the zone named name from z. It also stop the
the
zone's reload goroutine.
// Remove removes the zone named name from z. It also stop the zone's reload goroutine.
func
(
z
*
Zones
)
Remove
(
name
string
)
{
z
.
Lock
()
...
...
plugin/file/secondary_test.go
View file @
e78d9a78
...
...
@@ -146,7 +146,7 @@ func TestIsNotify(t *testing.T) {
// need to set opcode
state
.
Req
.
Opcode
=
dns
.
OpcodeNotify
z
.
TransferFrom
=
[]
string
{
"10.240.0.1:53"
}
// IP from
from
testing/responseWriter
z
.
TransferFrom
=
[]
string
{
"10.240.0.1:53"
}
// IP from testing/responseWriter
if
!
z
.
isNotify
(
state
)
{
t
.
Fatal
(
"Should have been valid notify"
)
}
...
...
plugin/kubernetes/kubernetes_test.go
View file @
e78d9a78
...
...
@@ -287,7 +287,7 @@ func TestServices(t *testing.T) {
continue
}
if
len
(
svcs
)
!=
1
{
t
.
Errorf
(
"Test %d, expected
expected
1 answer, got %v"
,
i
,
len
(
svcs
))
t
.
Errorf
(
"Test %d, expected 1 answer, got %v"
,
i
,
len
(
svcs
))
continue
}
...
...
plugin/rewrite/class.go
View file @
e78d9a78
...
...
@@ -29,7 +29,7 @@ func newClassRule(nextAction string, args ...string) (Rule, error) {
return
&
classRule
{
from
,
to
,
nextAction
},
nil
}
// Rewrite rewrites the
the
current request.
// Rewrite rewrites the current request.
func
(
rule
*
classRule
)
Rewrite
(
ctx
context
.
Context
,
state
request
.
Request
)
Result
{
if
rule
.
fromClass
>
0
&&
rule
.
toClass
>
0
{
if
state
.
Req
.
Question
[
0
]
.
Qclass
==
rule
.
fromClass
{
...
...
plugin/rewrite/type.go
View file @
e78d9a78
...
...
@@ -30,7 +30,7 @@ func newTypeRule(nextAction string, args ...string) (Rule, error) {
return
&
typeRule
{
from
,
to
,
nextAction
},
nil
}
// Rewrite rewrites the
the
current request.
// Rewrite rewrites the current request.
func
(
rule
*
typeRule
)
Rewrite
(
ctx
context
.
Context
,
state
request
.
Request
)
Result
{
if
rule
.
fromType
>
0
&&
rule
.
toType
>
0
{
if
state
.
QType
()
==
rule
.
fromType
{
...
...
plugin/test/helpers.go
View file @
e78d9a78
...
...
@@ -130,7 +130,7 @@ func Header(tc Case, resp *dns.Msg) error {
return
nil
}
// Section tests if the
the
section in tc matches rr.
// Section tests if the section in tc matches rr.
func
Section
(
tc
Case
,
sec
sect
,
rr
[]
dns
.
RR
)
error
{
section
:=
[]
dns
.
RR
{}
switch
sec
{
...
...
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