mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -04:00
Touched up snowflake client tests
There were a few tests that needed refreshing since the introduction of the pion library. Also added a few tests for the ICE server parsing function in the client.
This commit is contained in:
parent
dabdd847ce
commit
0f99c5ab12
3 changed files with 90 additions and 8 deletions
|
@ -77,6 +77,7 @@ func parseIceServers(s string) []webrtc.ICEServer {
|
|||
urls := strings.Split(s, ",")
|
||||
log.Printf("Using ICE Servers:")
|
||||
for _, url := range urls {
|
||||
url = strings.TrimSpace(url)
|
||||
log.Printf("url: %s", url)
|
||||
servers = append(servers, webrtc.ICEServer{
|
||||
URLs: []string{url},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue