Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
start: make http server's listening host/port compatible with IPv6 (#14)
previously, a command like this to listen on IPv6 loopback: HOST=::1 PORT=7447 go run ./basic/ would exit immediately because ::1:7447 is an invalid address. IPv6 addresses contain columns, so a simple host + port concatenation doesn't work. net.JoinHostPort is a function to do exactly that.
- Loading branch information