1
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-16 21:56:40 -05:00

reverseproxy: Don't clear name in SRV upstreams

Fix for dc4d147388
This commit is contained in:
Matthew Holt 2022-03-21 08:33:24 -06:00
parent c2327161f7
commit 2196c92c0e
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -186,7 +186,6 @@ func (su SRVUpstreams) expandedAddr(r *http.Request) (addr, service, proto, name
name = repl.ReplaceAll(su.Name, "") name = repl.ReplaceAll(su.Name, "")
if su.Service == "" && su.Proto == "" { if su.Service == "" && su.Proto == "" {
addr = name addr = name
name = ""
return return
} }
service = repl.ReplaceAll(su.Service, "") service = repl.ReplaceAll(su.Service, "")