@marcel91200 / caddy Mirror · read-only / commits / b8dbecb8
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: Include port in A upstreams cache

Should fix #4659

Matthew Holt committed Mar 24, 2022 at 10:44 UTC b8dbecb841bef1f1ec67419b871d23d66af7a3b1
1 file changed +1 -1
modules/caddyhttp/reverseproxy/upstreams.go
+1 -1
@@ -342,7 +342,7 @@ func (au AUpstreams) GetUpstreams(r *http.Request) ([]*Upstream, error) {
342 return upstreams, nil
343 }
344
345 -func (au AUpstreams) String() string { return au.Name }
345 +func (au AUpstreams) String() string { return net.JoinHostPort(au.Name, au.Port) }
346
347 type aLookup struct {
348 aUpstreams AUpstreams