diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2022-03-24 10:44:36 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2022-03-24 10:44:36 -0600 |
commit | b8dbecb841bef1f1ec67419b871d23d66af7a3b1 (patch) | |
tree | ce9bdfced997e04aae26abd82cab3371381a65a1 /modules | |
parent | 134b8056444d8f417c0eb4163809f9659ffc3317 (diff) |
reverseproxy: Include port in A upstreams cache
Should fix #4659
Diffstat (limited to 'modules')
-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 c66e0c0..3b58b8d 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 |