diff options
author | Matthew Holt <[email protected]> | 2022-03-24 10:44:36 -0600 |
---|---|---|
committer | Matthew Holt <[email protected]> | 2022-03-24 10:44:36 -0600 |
commit | b8dbecb841bef1f1ec67419b871d23d66af7a3b1 (patch) | |
tree | ce9bdfced997e04aae26abd82cab3371381a65a1 /modules/caddyhttp/reverseproxy/upstreams.go | |
parent | 134b8056444d8f417c0eb4163809f9659ffc3317 (diff) | |
download | caddy-b8dbecb841bef1f1ec67419b871d23d66af7a3b1.tar.gz caddy-b8dbecb841bef1f1ec67419b871d23d66af7a3b1.zip |
reverseproxy: Include port in A upstreams cache
Should fix #4659
Diffstat (limited to 'modules/caddyhttp/reverseproxy/upstreams.go')
-rw-r--r-- | modules/caddyhttp/reverseproxy/upstreams.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/reverseproxy/upstreams.go b/modules/caddyhttp/reverseproxy/upstreams.go index c66e0c046..3b58b8ddd 100644 --- a/modules/caddyhttp/reverseproxy/upstreams.go +++ b/modules/caddyhttp/reverseproxy/upstreams.go @@ -342,7 +342,7 @@ func (au AUpstreams) GetUpstreams(r *http.Request) ([]*Upstream, error) { return upstreams, nil } -func (au AUpstreams) String() string { return au.Name } +func (au AUpstreams) String() string { return net.JoinHostPort(au.Name, au.Port) } type aLookup struct { aUpstreams AUpstreams |