From d5117b72a25fc94eddd943583a74a9b3f8475472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Rodr=C3=ADguez?= Date: Fri, 3 Feb 2017 12:08:26 -0500 Subject: [PATCH] Use rtcConfig --- app.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 331acaa..853cd48 100644 --- a/app.js +++ b/app.js @@ -1,12 +1,21 @@ /* global WebTorrent, angular, moment, prompt */ -const VERSION = '0.17.0' +const VERSION = '0.17.1' const tracker = ['wss://tracker.btorrent.xyz'] 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 })