p2p/nat: fix stun default test

This commit is contained in:
pengzhen 2025-01-24 17:09:46 +08:00
parent ab6d1d291e
commit 7645effa31

View file

@ -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"}}},
} }