Remove STUN (default already), use BTorrent tracker only (performance)
This commit is contained in:
parent
7a3e11547f
commit
0d78c08a00
1 changed files with 3 additions and 15 deletions
18
app.js
18
app.js
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue