better code for handle IPv6 on nginx config.