From 49d9549d80e454675e0151103514d7c14026206a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Rodr=C3=ADguez?= Date: Fri, 3 Feb 2017 12:45:52 -0500 Subject: [PATCH] v0.17.3 - keep rtcConfig at full --- app.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index d8591c6..4455efd 100644 --- a/app.js +++ b/app.js @@ -1,12 +1,21 @@ /* global WebTorrent, angular, moment, prompt */ -const VERSION = '0.17.2' +const VERSION = '0.17.3' const tracker = ['wss://tracker.btorrent.xyz', 'wss://tracker.openwebtorrent.com', 'wss://tracker.fastcast.nz'] const opts = { announce: tracker } +const rtcConfig = { + 'iceServers': [ + { + 'url': 'stun:stun.l.google.com:19305', + 'urls': 'stun:stun.l.google.com:19305' + } + ] +} + const debug = window.localStorage.getItem('debug') != null const dbg = function (string, item, color) { @@ -25,6 +34,7 @@ const er = function (err, item) { dbg(err, item, '#FF0000') } dbg(`Starting... v${VERSION}`) const client = new WebTorrent({ + rtcConfig: rtcConfig, tracker: opts })