diff --git a/static/protocol.js b/static/protocol.js index 962b187..ea27290 100644 --- a/static/protocol.js +++ b/static/protocol.js @@ -64,7 +64,7 @@ function ServerConnection() { * The ICE configuration used by all associated streams. * @type {Array.} */ - this.iceServers = []; + this.iceServers = null; /** * The permissions granted to this connection. * @type {Object.} @@ -359,7 +359,7 @@ ServerConnection.prototype.newUpStream = function(id) { throw new Error('Eek!'); } let pc = new RTCPeerConnection({ - iceServers: sc.iceServers, + iceServers: sc.iceServers || [], }); if(!pc) throw new Error("Couldn't create peer connection");