server: make the connect code fully IPv6