mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 19:15:34 +00:00
cmd/stunc: support ipv6 address targets (#12166)
Updates #cleanup Signed-off-by: Jordan Whited <jordan@tailscale.com>
This commit is contained in:
parent
8d1249550a
commit
adb7a86559
@ -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…
Reference in New Issue
Block a user