mirror of
https://github.com/aljazceru/khatru.git
synced 2026-01-23 15:14:21 +01:00
932a9b62a7f10d60fdae3226be7110304304a590
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.
Languages
Go
100%