summaryrefslogtreecommitdiff
path: root/modules/caddyhttp
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2022-03-24 10:44:36 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2022-03-24 10:44:36 -0600
commitb8dbecb841bef1f1ec67419b871d23d66af7a3b1 (patch)
treece9bdfced997e04aae26abd82cab3371381a65a1 /modules/caddyhttp
parent134b8056444d8f417c0eb4163809f9659ffc3317 (diff)
reverseproxy: Include port in A upstreams cache
Should fix #4659
Diffstat (limited to 'modules/caddyhttp')
-rw-r--r--modules/caddyhttp/reverseproxy/upstreams.go2
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