first try to find whether there is a "[" in the first character to judge
whether use ipv4 or ipv6 parse. This is clearly wrong because you can't
tell the URL's ip address type.
I'd like to write a patch to improve this.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,177146,177149#msg-177149