Readd trackers
This commit is contained in:
parent
d5117b72a2
commit
374917a668
1 changed files with 2 additions and 12 deletions
14
app.js
14
app.js
|
@ -1,21 +1,12 @@
|
||||||
/* global WebTorrent, angular, moment, prompt */
|
/* global WebTorrent, angular, moment, prompt */
|
||||||
|
|
||||||
const VERSION = '0.17.1'
|
const VERSION = '0.17.2'
|
||||||
|
|
||||||
const tracker = ['wss://tracker.btorrent.xyz']
|
const tracker = ['wss://tracker.btorrent.xyz', 'wss://tracker.openwebtorrent.com', 'wss://tracker.fastcast.nz']
|
||||||
const opts = {
|
const opts = {
|
||||||
announce: tracker
|
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 debug = window.localStorage.getItem('debug') != null
|
||||||
|
|
||||||
const dbg = function (string, item, color) {
|
const dbg = function (string, item, color) {
|
||||||
|
@ -34,7 +25,6 @@ const er = function (err, item) { dbg(err, item, '#FF0000') }
|
||||||
dbg(`Starting... v${VERSION}`)
|
dbg(`Starting... v${VERSION}`)
|
||||||
|
|
||||||
const client = new WebTorrent({
|
const client = new WebTorrent({
|
||||||
rtcConfig: rtcConfig,
|
|
||||||
tracker: opts
|
tracker: opts
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue