mirror of
https://github.com/fiatjaf/khatru.git
synced 2026-04-04 04:34:24 +02: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%