Skip to content

Commit 4fa7a9d

Browse files
committed
Change stun-nat-behaviour default server
Google STUN server doesn't support OtherAddress, use stun.voip.blackberry.com instead
1 parent 068b9e3 commit 4fa7a9d

File tree

3 files changed

+41
-1
lines changed

3 files changed

+41
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ PACKAGES
99
cmd/stun-cli/stun-cli
1010
cmd/stun-decode/stun-decode
1111
cmd/stun-bench/stun-bench
12+
cmd/stun-nat-behaviour/stun-nat-behaviour
1213

1314
coverage.txt
1415

.goreleaser.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
before:
2+
hooks:
3+
- go mod tidy
4+
5+
archives:
6+
- replacements:
7+
darwin: Darwin
8+
linux: Linux
9+
windows: Windows
10+
386: i386
11+
amd64: x86_64
12+
13+
checksum:
14+
name_template: 'checksums.txt'
15+
16+
snapshot:
17+
name_template: "{{ .Tag }}-next"
18+
19+
changelog:
20+
sort: asc
21+
filters:
22+
exclude:
23+
- '^docs:'
24+
- '^test:'
25+
26+
builds:
27+
- binary: stun-not-behavior
28+
id: stun-not-behavior
29+
goos:
30+
- darwin
31+
- windows
32+
- linux
33+
- freebsd
34+
goarch:
35+
- amd64
36+
- 386
37+
env:
38+
- CGO_ENABLED=0
39+
main: ./cmd/stun-nat-behavior

cmd/stun-nat-behaviour/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func (c *StunServerConn) Close() {
2323
}
2424

2525
var (
26-
addrStrPtr = flag.String("server", "stun.l.google.com:19302", "STUN server address")
26+
addrStrPtr = flag.String("server", "stun.voip.blackberry.com:3478", "STUN server address")
2727
ErrTimedOut = errors.New("timed out waiting for response")
2828
)
2929

0 commit comments

Comments
 (0)