Re: IPv6 listen syntax

Julien Goodwin <[email protected]> Tue, 25 Feb 2014 22:44:05 +1100
Newsgroups gmane.mail.perdition.user
Message-ID <[email protected]>
On 25/02/14 18:29, Simon Horman wrote:
> On Tue, Feb 25, 2014 at 03:53:08PM +1100, Julien Goodwin wrote:
>> I've just upgraded my mail box to wheezy, and at the same time enabled
>> v6 on it, however I can't figure out what magic syntax is needed for
>> perdition to actual listen on v6.
>>
>> The package in wheezy is 1.19~rc5-1+b1 which seems like it should have
>> v6 support, but it doesn't by default listen on v6, and with what seems
>> like the obvious setting:
>> bind_address 0.0.0.0,::
>>
>> Fails to start.
>>
>> Nowhere in the docs can I see any examples with v6 addresses, so I don't
>> know if it's perhaps expecting [::] style or something different.
>>
>> Any pointers?
> 
> Hi Julien,
> 
> the (undocumented) syntax is "[::]".
> 
> However, unfortunately it seems that in the case of
> "0.0.0.0,[::]" there is a bug that prevents perdition
> to binding to both addresses.
> 
> I am not sure what the bug is, but it is most likely
> in the way that vanessa_socket_server_bind() (in vanessa_socket)
> calls bind() in the case of "[::]".

Perhaps something to do with the fact that uint(0.0.0.0) == uint(::)?

> A possible work-around for this is to bind to the specific
> IPv6 addresses rather than rather than "[::]".
> 
> e.g.:
> 
> "0.0.0.0,[::1],[::2]"
> 

Which works fine, thanks.

______________________________________________
Perdition-users mailing list
[email protected]
http://lists.vergenet.net/listinfo/perdition-users
signature.asc (application/pgp-signature, 242 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iEYEARECAAYFAlMMggUACgkQBN1Ia7JOLPecQQCfbwEaD/iWtcPkzYFzMdLUj9I4
Z5gAnRgpDn5XkCdnuD3Avr+Oa6pwBye/
=drb8
-----END PGP SIGNATURE-----