use constants, fix ipv6 bug
net.Addr -> Multiaddr