[Xcb] [PATCH] Bug: Can’t connect to localhost without global connectivity
michael+xcb at stapelberg.de
Sun Aug 14 02:53:31 PDT 2011
On Sat, 13 Aug 2011 23:18:34 +0300
"Rémi Denis-Courmont" <remi at remlab.net> wrote:
> Le samedi 13 août 2011 22:54:05 Michael Stapelberg, vous avez écrit :
> > 2) Drop the AI_ADDRCONFIG flag only when connecting to localhost,
> > 127.0.0.0/8 or [::1]. This is a work-around, but should do the
> > trick for most use cases. I have attached a patch for this.
> There are infinitely many ways to refer to localhost. And I wouldn't
> underestimate the originality of people setting DISPLAY, e.g.:
> any representation of an IPv4 address in 127.0.0.0/8, such as
> 127.0.0.2 or 127.0.0.001,
> any representation of ::1, such a 0:0:0:0:0:0:0:1,
> any hostname pointing to localhost in /etc/hosts (this is typical of
> the actual "hostname").
Yes. This is why I called this option a work-around and recommended
option 1) :-).
More information about the Xcb