From b8dbecb841bef1f1ec67419b871d23d66af7a3b1 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Thu, 24 Mar 2022 10:44:36 -0600 Subject: reverseproxy: Include port in A upstreams cache Should fix #4659 --- modules/caddyhttp/reverseproxy/upstreams.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/caddyhttp/reverseproxy') 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 -- cgit v1.2.3