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

Updates #cleanup

Signed-off-by: Jordan Whited <jordan@tailscale.com>
pull/12173/head
Jordan Whited 6 months ago committed by GitHub
parent 8d1249550a
commit adb7a86559
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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)
} }

Loading…
Cancel
Save