Skip to content

Commit

Permalink
Remove stun scheme from default server flag
Browse files Browse the repository at this point in the history
calling `net.ResolveUDPAddr` with `stun:stun.voipgate.com:3478`
results in this error `too many colons in address`.
  • Loading branch information
OmarTariq612 committed Mar 28, 2024
1 parent 4ff55da commit cfedb0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/stun-traversal/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"github.com/pion/stun/v2"
)

var server = flag.String("server", "stun:stun.voipgate.com:3478", "Stun server address") //nolint:gochecknoglobals
var server = flag.String("server", "stun.voipgate.com:3478", "Stun server address") //nolint:gochecknoglobals

const (
udp = "udp4"
Expand Down

0 comments on commit cfedb0b

Please sign in to comment.