Support still experemental and incomplete, but for educational purposes just enough. Flag ipv6 needed for '--with-ipv6', otherwise ipv6 support will not be enabled by default. One of the bugs - it uses inet_pton for binding inet6 addresses, which (see man page) don't bind them as IPV6_ONLY (and they blocks IPv4 sockets with same ports), so, theoretically, you can use only one from IPv6 or IPv4. But, actually, you can simply map IPv4 address as IPv6 (i.e. 0.0.0.0 == [::ffff:0:0]), and use both protocols without problems. Reproducible: Always
Update: but never add [::] (it includes all IPv4 mapped addresses also) and any other ipv6 address - it will result in gigabytes of /var/log/nginx/error_log in few minutes.
Is the pton bug you mentioned still valid for the latest version? I'll mark your bug as a duplicate since the other bug has a patch. *** This bug has been marked as a duplicate of bug 274614 ***