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
79181909
Commit
79181909
authored
Aug 22, 2019
by
Guangming Wang
Committed by
Miek Gieben
Aug 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup: fix some typos in code comment (#3172)
Signed-off-by:
Guangming Wang
<
guangming.wang@daocloud.io
>
parent
434ac69a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
plugin/etcd/msg/path.go
plugin/etcd/msg/path.go
+1
-1
plugin/forward/forward.go
plugin/forward/forward.go
+1
-1
No files found.
plugin/etcd/msg/path.go
View file @
79181909
...
@@ -29,7 +29,7 @@ func Domain(s string) string {
...
@@ -29,7 +29,7 @@ func Domain(s string) string {
return
dnsutil
.
Join
(
l
[
1
:
len
(
l
)
-
1
]
...
)
return
dnsutil
.
Join
(
l
[
1
:
len
(
l
)
-
1
]
...
)
}
}
// PathWithWildcard a
s
cts as Path, but if a name contains wildcards (* or any), the name will be
// PathWithWildcard acts as Path, but if a name contains wildcards (* or any), the name will be
// chopped of before the (first) wildcard, and we do a higher level search and
// chopped of before the (first) wildcard, and we do a higher level search and
// later find the matching names. So service.*.skydns.local, will look for all
// later find the matching names. So service.*.skydns.local, will look for all
// services under skydns.local and will later check for names that match
// services under skydns.local and will later check for names that match
...
...
plugin/forward/forward.go
View file @
79181909
...
@@ -89,7 +89,7 @@ func (f *Forward) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg
...
@@ -89,7 +89,7 @@ func (f *Forward) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg
if
fails
<
len
(
f
.
proxies
)
{
if
fails
<
len
(
f
.
proxies
)
{
continue
continue
}
}
// All upstream proxies are dead, assume healtcheck is completely broken and randomly
// All upstream proxies are dead, assume healt
h
check is completely broken and randomly
// select an upstream to connect to.
// select an upstream to connect to.
r
:=
new
(
random
)
r
:=
new
(
random
)
proxy
=
r
.
List
(
f
.
proxies
)[
0
]
proxy
=
r
.
List
(
f
.
proxies
)[
0
]
...
...
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