Skip to content
Permalink
Browse files
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.
  • Loading branch information
cohosh committed Sep 3, 2019
1 parent 5fa9939 commit e5040c70f9a4d8e47ed9e37b2f0c944859a9c56c
Showing with 1 addition and 1 deletion.
  1. +1 −1 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,
}

0 comments on commit e5040c7

Please sign in to comment.