[PATCH] Make ipv6only default (was: Re: Resolve hostname to IPv6 address in listen directive)

Matthias-Christian Ott ott at mirix.org
Sat Aug 28 02:02:44 MSD 2010


On Fri, Aug 27, 2010 at 09:33:09AM +0200, Piotr Sikora wrote:
> >I've just outlined how it works.  If you feel brave enough - you
> >may try to produce patch to which changes "listen" to use all
> >addresses hostname resolves to.  But I suspect it's size will be
> >bigger than the problem deserves.
> 
> I'll leave this to Matthias ;)
> 
> I agree that this patch will probably have more than a few lines and
> that the current behavior isn't bad, but it would be definitely nice
> to have this.

The patch is far a more complex than I thought. A lot of other modules
use IPv4 addresses in the same wrong way as the listen directive. I will
have to fix this too.

However, attached is a patch that makes IPV6_V6ONLY the default option.

Regards,
Matthias-Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nginx-0.8.49-make-ipv6only-default.patch
Type: text/x-diff
Size: 7652 bytes
Desc: not available
URL: <http://nginx.org/pipermail/nginx-devel/attachments/20100828/b68873cf/attachment.patch>


More information about the nginx-devel mailing list