mirror of
https://github.com/fiatjaf/khatru.git
synced 2025-04-12 05:49:31 +02:00
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%