Subject: Re: bug#34617: 27.0.50; Can't bind a server process to all interfaces?

From: Robert Pluim <[email-masked]>
Date: Fri, 22 Feb 2019 15:25:22 +0100

Lars Ingebrigtsen <[email-masked]> writes:

> Lars Ingebrigtsen <[email-masked]> writes:
>
>> Somebody on irc told me that
>>
>>   :host "0.0.0.0"
>>
>> will give me the INADDR_ANY thing I want...  So perhaps that should just
>> be added to the doc string?
>
> And the same somebody pointed out that then you can't listen to ipv6 and
> ipv4 at the same time.  Probably?
>

You can, by listening to "::" but it depends on the underlying stack
whether it works or not. It works for me :-)

> So perhaps there should be a
>
>   :host 'any
>
> thing to just listen to a port on all available interfaces...

Sure, as long as we make it error out if :family is specified, unless
you want

:family 'ipv6
:host 'any

to mean 'listen only on IPv6' interfaces and similarly for 'ipv4.

Robert