mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
p2p/nat: fix stun default test
This commit is contained in:
parent
ab6d1d291e
commit
7645effa31
1 changed files with 2 additions and 2 deletions
|
|
@ -65,13 +65,13 @@ func TestAutoDiscRace(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// stun:default should work well
|
// stun should work well
|
||||||
func TestParseStun(t *testing.T) {
|
func TestParseStun(t *testing.T) {
|
||||||
testcases := []struct {
|
testcases := []struct {
|
||||||
natStr string
|
natStr string
|
||||||
want *stun
|
want *stun
|
||||||
}{
|
}{
|
||||||
{"stun:default", &stun{serverList: strings.Split(stunDefaultServers, "\n")}},
|
{"stun", &stun{serverList: strings.Split(stunDefaultServers, "\n")}},
|
||||||
{"stun:1.2.3.4:1234", &stun{serverList: []string{"1.2.3.4:1234"}}},
|
{"stun:1.2.3.4:1234", &stun{serverList: []string{"1.2.3.4:1234"}}},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue