Does "set_real_ip_from" support IPv4 only?

Hi,

I’m confused, I get this error by entering an IPv6 address in the
set_real_ip_from directive:

nginx: [emerg] “set_real_ip_from” supports IPv4 only in
/usr/local/nginx/conf/nginx.conf:65

But according to the changelog, that directive should support IPv6 since
nginx 0.8.22:

Changes with nginx 0.8.22 03 Nov
2009
[…]
*) Feature: the “set_real_ip_from” directive supports IPv6 addresses
in
request headers.
[…]

My nginx version: 1.0.8

Is the changelog referring to something else or is this a bug?

Thank you,
Andrea

Posted at Nginx Forum:

Hello!

On Thu, Oct 06, 2011 at 11:52:46AM -0400, Usu wrote:

Is the changelog referring to something else or is this a bug?
It supports ipv6 in request headers (that is, it will accept
ipv6 in X-Real-IP/X-Forwarded-For headers), while you are trying to use
ipv6 in set_real_ip_from directive. This is not (yet) supported.

Maxim D.

I figured that might be the problem but I wasn’t sure.

Thank you for the quick reply!

Posted at Nginx Forum: