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
92b71366
Commit
92b71366
authored
Feb 22, 2019
by
JoeWrightss
Committed by
Chris O'Haver
Feb 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some typos in comment (#2599)
Signed-off-by:
zhoulin xie
<
zhoulin.xie@daocloud.io
>
parent
89537223
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
plugin/proxy/proxy.go
plugin/proxy/proxy.go
+2
-2
No files found.
plugin/proxy/proxy.go
View file @
92b71366
...
@@ -45,7 +45,7 @@ type Upstream interface {
...
@@ -45,7 +45,7 @@ type Upstream interface {
From
()
string
From
()
string
// Selects an upstream host to be routed to.
// Selects an upstream host to be routed to.
Select
()
*
healthcheck
.
UpstreamHost
Select
()
*
healthcheck
.
UpstreamHost
// Checks if sub
p
domain is not an ignored.
// Checks if subdomain is not an ignored.
IsAllowedDomain
(
string
)
bool
IsAllowedDomain
(
string
)
bool
// Exchanger returns the exchanger to be used for this upstream.
// Exchanger returns the exchanger to be used for this upstream.
Exchanger
()
Exchanger
Exchanger
()
Exchanger
...
@@ -141,7 +141,7 @@ func (p Proxy) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (
...
@@ -141,7 +141,7 @@ func (p Proxy) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (
time
.
Sleep
(
timeout
)
time
.
Sleep
(
timeout
)
// we may go negative here, should be rectified by the HC.
// we may go negative here, should be rectified by the HC.
atomic
.
AddInt32
(
&
host
.
Fails
,
-
1
)
atomic
.
AddInt32
(
&
host
.
Fails
,
-
1
)
if
fails
%
failureCheck
==
0
{
// Kick off healthcheck on eve
y
ry third failure.
if
fails
%
failureCheck
==
0
{
// Kick off healthcheck on every third failure.
host
.
HealthCheckURL
()
host
.
HealthCheckURL
()
}
}
}(
host
,
timeout
)
}(
host
,
timeout
)
...
...
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