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

[tor-commits] [snowflake/master] Make sure command line ice servers are used



commit 97bab94e6715b59e4397303d53a05f33d9db1f97
Author: Cecylia Bocovich <cohosh@xxxxxxxxxxxxxx>
Date:   Tue Sep 3 16:20:05 2019 -0400

    Make sure command line ice servers are used
    
    This commit fixes a small error introduced in a previous commit. Servers
    given by command line options weren't being added to the configuration
    because we were checking for `iceServers` to be nil instead of not nil.
---
 client/lib/rendezvous.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client/lib/rendezvous.go b/client/lib/rendezvous.go
index 8f994f4..b13b841 100644
--- a/client/lib/rendezvous.go
+++ b/client/lib/rendezvous.go
@@ -128,7 +128,7 @@ type WebRTCDialer struct {
 func NewWebRTCDialer(
 	broker *BrokerChannel, iceServers []webrtc.ICEServer) *WebRTCDialer {
 	var config webrtc.Configuration
-	if iceServers == nil {
+	if iceServers != nil {
 		config = webrtc.Configuration{
 			ICEServers: iceServers,
 		}



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