Add ipv6 support for api listen