[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: defaulting to net.ipv6.bindv6only=1 for squeeze



Jarek Kamiński <jarek@vilo.eu.org> writes:

> Yes. Following code actually works (runs with bindv6only enabled,
> listens on [::]:1234 and accepts connection made to localhost:1234):


I'm sure it works.  But I wanted to note that "localhost" is somewhat
ambigious.  It may include ::1


 ipv6-pppoe-1:~# grep localhost /etc/hosts
 127.0.0.1       localhost
 ::1     localhost ip6-localhost ip6-loopback

 ipv6-pppoe-1:~# host localhost
 localhost has address 127.0.0.1
 localhost has IPv6 address ::1


You'd better test 127.0.0.1:1234 explicitly if that's what you want. 



Bjørn


Reply to: