cmd/stunc: support ipv6 address targets (#12166)

Updates #cleanup

Signed-off-by: Jordan Whited <jordan@tailscale.com>
This commit is contained in:
Jordan Whited 2024-05-17 12:02:57 -07:00 committed by GitHub
parent 8d1249550a
commit adb7a86559
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,7 +20,7 @@ func main() {
} }
host := os.Args[1] host := os.Args[1]
uaddr, err := net.ResolveUDPAddr("udp", host+":3478") uaddr, err := net.ResolveUDPAddr("udp", net.JoinHostPort(host, "3478"))
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }