use up-to-date list of trackers from create-torrent
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
var createTorrent = require('create-torrent')
|
||||||
var debug = require('debug')('instant.io')
|
var debug = require('debug')('instant.io')
|
||||||
var dragDrop = require('drag-drop')
|
var dragDrop = require('drag-drop')
|
||||||
// var listify = require('listify')
|
// var listify = require('listify')
|
||||||
@@ -10,7 +11,13 @@ var xhr = require('xhr')
|
|||||||
|
|
||||||
var util = require('./util')
|
var util = require('./util')
|
||||||
|
|
||||||
global.WEBTORRENT_ANNOUNCE = [ 'wss://tracker.webtorrent.io', 'wss://tracker.btorrent.xyz' ]
|
global.WEBTORRENT_ANNOUNCE = createTorrent.announceList
|
||||||
|
.map(function (arr) {
|
||||||
|
return arr[0]
|
||||||
|
})
|
||||||
|
.filter(function (url) {
|
||||||
|
return url.indexOf('wss://') === 0 || url.indexOf('ws://') === 0
|
||||||
|
})
|
||||||
|
|
||||||
var getClient = thunky(function (cb) {
|
var getClient = thunky(function (cb) {
|
||||||
getRtcConfig('https://instant.io/rtcConfig', function (err, rtcConfig) {
|
getRtcConfig('https://instant.io/rtcConfig', function (err, rtcConfig) {
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
"url": "https://github.com/feross/webtorrent-app/issues"
|
"url": "https://github.com/feross/webtorrent-app/issues"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"create-torrent": "^3.22.1",
|
||||||
"debug": "^2.2.0",
|
"debug": "^2.2.0",
|
||||||
"drag-drop": "^2.3.1",
|
"drag-drop": "^2.3.1",
|
||||||
"electron-debug": "^0.5.0",
|
"electron-debug": "^0.5.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user