mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Choose a random subset from given STUN servers
Only chooses a subset as long as we have over 2 STUN servers to choose from.
This commit is contained in:
parent
eaac9f5b6b
commit
92520f681d
3 changed files with 12 additions and 3 deletions
|
@ -49,8 +49,8 @@ func TestICEServerParser(t *testing.T) {
|
|||
|
||||
So(len(servers), ShouldEqual, test.length)
|
||||
|
||||
for i, server := range servers {
|
||||
So(server.URLs, ShouldResemble, test.urls[i])
|
||||
for _, server := range servers {
|
||||
So(test.urls, ShouldContain, server.URLs)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue