Browse Source

reverseproxy: Don't clear name in SRV upstreams

Fix for dc4d147388
master
Matthew Holt 3 years ago
parent
commit
2196c92c0e
No known key found for this signature in database GPG Key ID: 2A349DD577D586A5
  1. 1
      modules/caddyhttp/reverseproxy/upstreams.go

1
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, "")

Loading…
Cancel
Save