Commit 97bab94e authored by Cecylia Bocovich's avatar Cecylia Bocovich
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.
parent 6cf53c4e
......@@ -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,
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment