@marcel91200 / caddy Mirror · read-only / commits / 2196c92c
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 13, 20:30 UTC

reverseproxy: Don't clear name in SRV upstreams

Fix for dc4d147388547515f77447d594024386b732e7d4

Matthew Holt committed Mar 21, 2022 at 08:33 UTC 2196c92c0ef4e3d3622d5a8bb549e5faed135382
1 file changed -1
modules/caddyhttp/reverseproxy/upstreams.go
-1
@@ -186,7 +186,6 @@ func (su SRVUpstreams) expandedAddr(r *http.Request) (addr, service, proto, name
186 name = repl.ReplaceAll(su.Name, "")
187 if su.Service == "" && su.Proto == "" {
188 addr = name
189 - name = ""
189 return
190 }
191 service = repl.ReplaceAll(su.Service, "")