diff options
author | Francis Lavoie <[email protected]> | 2023-04-10 16:08:40 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2023-04-10 20:08:40 +0000 |
commit | 4636109ce17e6ba5f46e73b7b1f3ae82d076a625 (patch) | |
tree | 93d9bda1a253a002bcb4b4e4d0daa9a67d1bad79 /modules/caddyhttp/reverseproxy/healthchecks.go | |
parent | 205b142614d5de08ffc33a04ae4cfc00e65b5dfc (diff) | |
download | caddy-4636109ce17e6ba5f46e73b7b1f3ae82d076a625.tar.gz caddy-4636109ce17e6ba5f46e73b7b1f3ae82d076a625.zip |
reverseproxy: Remove deprecated `lookup_srv` (#5396)
Diffstat (limited to 'modules/caddyhttp/reverseproxy/healthchecks.go')
-rw-r--r-- | modules/caddyhttp/reverseproxy/healthchecks.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/reverseproxy/healthchecks.go b/modules/caddyhttp/reverseproxy/healthchecks.go index c27b24f7e..cfc7bdff8 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), ) |