take more care with v6 literals and port numbers