From Newsgroup: alt.privacy.anon-server
Marco Moock wrote:
Am 02.06.26 um 22:16 schrieb Victor:
127.0.0.1 instead of localhost in ProxyPass to avoid IPv4/IPv6
resolution ambiguity.
Can you explain that further?
First, address selection.
When localhost resolves to more than one address, etc/hosts, the connecting side decides which to try first.
That choice is governed by /etc/gai.conf and the RFC 6724 destination-address selection algorithm, which by default prefers IPv6.
So localhost tends to be attempted as ::1 before 127.0.0.1.
Second, what the backend listens on.
The Go server binds explicitly to 127.0.0.1:SomePort,
IPv4 only, nothing on ::1.
So when the resolver hands back the IPv6 loopback first, the proxy reaches for [::1]:SomePort, finds no socket, and you get a connection refused surfacing as an intermittent 502.
AFAIK
burrrp
--- Synchronet 3.22a-Linux NewsLink 1.2