summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/reverseproxy/healthchecks.go
diff options
context:
space:
mode:
authorFrancis Lavoie <lavofr@gmail.com>2023-04-10 16:08:40 -0400
committerGitHub <noreply@github.com>2023-04-10 20:08:40 +0000
commit4636109ce17e6ba5f46e73b7b1f3ae82d076a625 (patch)
tree93d9bda1a253a002bcb4b4e4d0daa9a67d1bad79 /modules/caddyhttp/reverseproxy/healthchecks.go
parent205b142614d5de08ffc33a04ae4cfc00e65b5dfc (diff)
reverseproxy: Remove deprecated `lookup_srv` (#5396)
Diffstat (limited to 'modules/caddyhttp/reverseproxy/healthchecks.go')
-rw-r--r--modules/caddyhttp/reverseproxy/healthchecks.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/reverseproxy/healthchecks.go b/modules/caddyhttp/reverseproxy/healthchecks.go
index c27b24f..cfc7bdf 100644
--- a/modules/caddyhttp/reverseproxy/healthchecks.go
+++ b/modules/caddyhttp/reverseproxy/healthchecks.go
@@ -203,7 +203,7 @@ func (h *Handler) doActiveHealthCheckForAllHosts() {
}
addr.StartPort, addr.EndPort = hcp, hcp
}
- if upstream.LookupSRV == "" && addr.PortRangeSize() != 1 {
+ if addr.PortRangeSize() != 1 {
h.HealthChecks.Active.logger.Error("multiple addresses (upstream must map to only one address)",
zap.String("address", networkAddr),
)