From 2196c92c0ef4e3d3622d5a8bb549e5faed135382 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Mon, 21 Mar 2022 08:33:24 -0600 Subject: [PATCH] reverseproxy: Don't clear name in SRV upstreams Fix for dc4d147388547515f77447d594024386b732e7d4 --- modules/caddyhttp/reverseproxy/upstreams.go | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/caddyhttp/reverseproxy/upstreams.go b/modules/caddyhttp/reverseproxy/upstreams.go index 5b1ba129..c66e0c04 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, "")