Add ipv6 support, disabled by default

Support listening on ipv6 address via flag --ipv6, disabled by default.