aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/caddyhttp/reverseproxy
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2022-03-21 08:33:24 -0600
committerMatthew Holt <[email protected]>2022-03-21 08:33:24 -0600
commit2196c92c0ef4e3d3622d5a8bb549e5faed135382 (patch)
treedd470a2f1bd4474d9e3ca2a5c22a05265bf2cc2c /modules/caddyhttp/reverseproxy
parentc2327161f725c820826587381f37d651a2b9736d (diff)
downloadcaddy-2196c92c0ef4e3d3622d5a8bb549e5faed135382.tar.gz
caddy-2196c92c0ef4e3d3622d5a8bb549e5faed135382.zip
reverseproxy: Don't clear name in SRV upstreams
Fix for dc4d147388547515f77447d594024386b732e7d4
Diffstat (limited to 'modules/caddyhttp/reverseproxy')
-rw-r--r--modules/caddyhttp/reverseproxy/upstreams.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/modules/caddyhttp/reverseproxy/upstreams.go b/modules/caddyhttp/reverseproxy/upstreams.go
index 5b1ba129b..c66e0c046 100644
--- a/modules/caddyhttp/reverseproxy/upstreams.go
+++ b/modules/caddyhttp/reverseproxy/upstreams.go
@@ -186,7 +186,6 @@ func (su SRVUpstreams) expandedAddr(r *http.Request) (addr, service, proto, name
name = repl.ReplaceAll(su.Name, "")
if su.Service == "" && su.Proto == "" {
addr = name
- name = ""
return
}
service = repl.ReplaceAll(su.Service, "")