From 359600ddc55d197dbaac7f01f72ac8278054efe7 Mon Sep 17 00:00:00 2001 From: Arlo Breault Date: Sat, 6 Jul 2019 13:43:29 +0200 Subject: [PATCH] Fix pcConfig from compiling to a global But note that maybe we should be constructing a new PCConfig each time Config is instantiated, rather than sharing it on the prototype. --- proxy/config.coffee | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/proxy/config.coffee b/proxy/config.coffee index 810c79f..43dca56 100644 --- a/proxy/config.coffee +++ b/proxy/config.coffee @@ -19,8 +19,7 @@ class Config connectionsPerClient: 1 # TODO: Different ICE servers. - pcConfig = { + pcConfig: iceServers: [ { urls: ['stun:stun.l.google.com:19302'] } ] - }