[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [snowflake/master] Move ICE server logging out of parseIceServers.



commit aa3999857f99e5aa51b7a37366e666e1d1e30af3
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Tue Dec 24 18:19:28 2019 -0700

    Move ICE server logging out of parseIceServers.
---
 client/snowflake.go | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/client/snowflake.go b/client/snowflake.go
index 99226b8..b807c8d 100644
--- a/client/snowflake.go
+++ b/client/snowflake.go
@@ -69,16 +69,13 @@ func socksAcceptLoop(ln *pt.SocksListener, snowflakes sf.SnowflakeCollector) {
 // s is a comma-separated list of ICE server URLs.
 func parseIceServers(s string) []webrtc.ICEServer {
 	var servers []webrtc.ICEServer
-	log.Println(s)
 	s = strings.TrimSpace(s)
 	if len(s) == 0 {
 		return nil
 	}
 	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},
 		})
@@ -126,6 +123,10 @@ func main() {
 	log.Println("\n\n\n --- Starting Snowflake Client ---")
 
 	iceServers := parseIceServers(*iceServersCommas)
+	log.Printf("Using ICE servers:")
+	for _, server := range iceServers {
+		log.Printf("url: %v", strings.Join(server.URLs, " "))
+	}
 
 	// Prepare to collect remote WebRTC peers.
 	snowflakes := sf.NewPeers(*max)



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits