summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/reverseproxy/hosts.go
diff options
context:
space:
mode:
authorMohammed Al Sahaf <msaa1990@gmail.com>2020-09-17 19:25:34 +0300
committerGitHub <noreply@github.com>2020-09-17 10:25:34 -0600
commitbc453fa6ae36287c90d2bf6941cb686490090df2 (patch)
tree706bbb9c7a274c3b61b780a7a758407894be8739 /modules/caddyhttp/reverseproxy/hosts.go
parente3324aa6de6c6f8f9fc14757025bb15de4801dde (diff)
reverseproxy: Correct alternate port for active health checks (#3693)
* reverseproxy: construct active health-check transport from scratch (Fixes #3691) * reverseproxy: do upstream health-check on the correct alternative port * reverseproxy: add integration test for health-check on alternative port * reverseproxy: put back the custom transport for health-check http client * reverseproxy: cleanup health-check integration test * reverseproxy: fix health-check of unix socket upstreams * reverseproxy: skip unix socket tests on Windows * tabs > spaces Co-authored-by: Francis Lavoie <lavofr@gmail.com> * make the linter (and @francislavoie) happy Co-authored-by: Francis Lavoie <lavofr@gmail.com> * One more lint fix Co-authored-by: Francis Lavoie <lavofr@gmail.com> Co-authored-by: Francis Lavoie <lavofr@gmail.com>
Diffstat (limited to 'modules/caddyhttp/reverseproxy/hosts.go')
-rw-r--r--modules/caddyhttp/reverseproxy/hosts.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/caddyhttp/reverseproxy/hosts.go b/modules/caddyhttp/reverseproxy/hosts.go
index 5870b75..b7b8c9b 100644
--- a/modules/caddyhttp/reverseproxy/hosts.go
+++ b/modules/caddyhttp/reverseproxy/hosts.go
@@ -92,8 +92,10 @@ type Upstream struct {
// HeaderAffinity string
// IPAffinity string
- healthCheckPolicy *PassiveHealthChecks
- cb CircuitBreaker
+ networkAddress caddy.NetworkAddress
+ activeHealthCheckPort int
+ healthCheckPolicy *PassiveHealthChecks
+ cb CircuitBreaker
}
func (u Upstream) String() string {