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.
This commit is contained in:
Cecylia Bocovich 2019-09-03 16:20:05 -04:00
parent 6cf53c4ef0
commit 97bab94e67

View file

@ -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,
}