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
20325863
Commit
20325863
authored
Nov 22, 2018
by
Miek Gieben
Committed by
Yong Tang
Nov 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Scrub results in forwarding/lookup (#2331)
Signed-off-by:
Miek Gieben
<
miek@miek.nl
>
parent
fc96c642
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
plugin/forward/lookup.go
plugin/forward/lookup.go
+2
-1
No files found.
plugin/forward/lookup.go
View file @
20325863
...
@@ -50,6 +50,7 @@ func (f *Forward) Forward(state request.Request) (*dns.Msg, error) {
...
@@ -50,6 +50,7 @@ func (f *Forward) Forward(state request.Request) (*dns.Msg, error) {
return
state
.
ErrorMessage
(
dns
.
RcodeFormatError
),
nil
return
state
.
ErrorMessage
(
dns
.
RcodeFormatError
),
nil
}
}
ret
=
state
.
Scrub
(
ret
)
return
ret
,
err
return
ret
,
err
}
}
...
@@ -78,7 +79,7 @@ func (f *Forward) Lookup(state request.Request, name string, typ uint16) (*dns.M
...
@@ -78,7 +79,7 @@ func (f *Forward) Lookup(state request.Request, name string, typ uint16) (*dns.M
}
}
// NewLookup returns a Forward that can be used for plugin that need an upstream to resolve external names.
// NewLookup returns a Forward that can be used for plugin that need an upstream to resolve external names.
// Note that the caller
must
run Close on the forward to stop the health checking goroutines.
// Note that the caller
MUST
run Close on the forward to stop the health checking goroutines.
func
NewLookup
(
addr
[]
string
)
*
Forward
{
func
NewLookup
(
addr
[]
string
)
*
Forward
{
f
:=
New
()
f
:=
New
()
for
i
:=
range
addr
{
for
i
:=
range
addr
{
...
...
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