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

cohosh at torproject.org cohosh at torproject.org
Tue Oct 8 13:55:29 UTC 2019


commit 97bab94e6715b59e4397303d53a05f33d9db1f97
Author: Cecylia Bocovich <cohosh at torproject.org>
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,
 		}





More information about the tor-commits mailing list