Remove STUN (default already), use BTorrent tracker only (performance)

This commit is contained in:
Diego Rodríguez 2017-02-03 12:05:18 -05:00
parent 7a3e11547f
commit 0d78c08a00
No known key found for this signature in database
GPG key ID: 699A21547E317F10

18
app.js
View file

@ -2,18 +2,9 @@
const VERSION = '0.16.2'
const trackers = ['wss://tracker.btorrent.xyz', 'wss://tracker.openwebtorrent.com', 'wss://tracker.fastcast.nz']
const tracker = ['wss://tracker.btorrent.xyz']
const opts = {
announce: trackers
}
const rtcConfig = {
'iceServers': [
{
'url': 'stun:stun.l.google.com:19305',
'urls': 'stun:stun.l.google.com:19305'
}
]
announce: tracker
}
const debug = window.localStorage.getItem('debug') != null
@ -34,10 +25,7 @@ const er = function (err, item) { dbg(err, item, '#FF0000') }
dbg(`Starting... v${VERSION}`)
const client = new WebTorrent({
tracker: {
rtcConfig: rtcConfig,
announce: trackers
}
tracker: opts
})
const app = angular.module('BTorrent',