From adb7a86559abe9d69b177e9b4652628e3beaf9e1 Mon Sep 17 00:00:00 2001 From: Jordan Whited Date: Fri, 17 May 2024 12:02:57 -0700 Subject: [PATCH] cmd/stunc: support ipv6 address targets (#12166) Updates #cleanup Signed-off-by: Jordan Whited --- cmd/stunc/stunc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/stunc/stunc.go b/cmd/stunc/stunc.go index f140ede19..81edb1d24 100644 --- a/cmd/stunc/stunc.go +++ b/cmd/stunc/stunc.go @@ -20,7 +20,7 @@ func main() { } host := os.Args[1] - uaddr, err := net.ResolveUDPAddr("udp", host+":3478") + uaddr, err := net.ResolveUDPAddr("udp", net.JoinHostPort(host, "3478")) if err != nil { log.Fatal(err) }