Fix trackers issue - v0.7.1
This commit is contained in:
parent
b6cc2d7919
commit
361499ef91
3 changed files with 67 additions and 65 deletions
14
app.coffee
14
app.coffee
|
@ -1,12 +1,13 @@
|
||||||
trackers = [
|
trackers = [
|
||||||
[ 'wss://tracker.webtorrent.io' ],
|
[ 'wss://tracker.btorrent.xyz' ],
|
||||||
[ 'wss://tracker.btorrent.xyz' ]
|
[ 'wss://tracker.webtorrent.io' ]
|
||||||
]
|
]
|
||||||
|
|
||||||
opts = {
|
opts = {
|
||||||
announce: trackers
|
announce: trackers
|
||||||
announceList: trackers
|
}
|
||||||
rtcConfig: {
|
|
||||||
|
rtcConfig = {
|
||||||
"iceServers":[
|
"iceServers":[
|
||||||
{"url":"stun:23.21.150.121","urls":"stun:23.21.150.121"},
|
{"url":"stun:23.21.150.121","urls":"stun:23.21.150.121"},
|
||||||
{"url":"stun:stun.l.google.com:19302","urls":"stun:stun.l.google.com:19302"},
|
{"url":"stun:stun.l.google.com:19302","urls":"stun:stun.l.google.com:19302"},
|
||||||
|
@ -19,7 +20,7 @@ opts = {
|
||||||
"urls":"turn:global.turn.twilio.com:3478?transport=udp",
|
"urls":"turn:global.turn.twilio.com:3478?transport=udp",
|
||||||
"username":"857315a4616be37252127d4ff924c3a3536dd3fa729b56206dfa0e6808a80478",
|
"username":"857315a4616be37252127d4ff924c3a3536dd3fa729b56206dfa0e6808a80478",
|
||||||
"credential":"EEEr7bxx8umMHC4sOoWDC/4MxU/4JCfL+W7KeSJEsBQ="
|
"credential":"EEEr7bxx8umMHC4sOoWDC/4MxU/4JCfL+W7KeSJEsBQ="
|
||||||
}
|
},
|
||||||
{
|
{
|
||||||
"url": "turn:numb.viagenie.ca",
|
"url": "turn:numb.viagenie.ca",
|
||||||
"urls": "turn:numb.viagenie.ca",
|
"urls": "turn:numb.viagenie.ca",
|
||||||
|
@ -28,9 +29,8 @@ opts = {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
client = new WebTorrent opts
|
client = new WebTorrent {rtcConfig: rtcConfig}
|
||||||
|
|
||||||
dbg = (string, torrent, color) ->
|
dbg = (string, torrent, color) ->
|
||||||
color = if color? then color else '#333333'
|
color = if color? then color else '#333333'
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
// Generated by CoffeeScript 1.10.0
|
// Generated by CoffeeScript 1.10.0
|
||||||
(function() {
|
(function() {
|
||||||
var app, client, dbg, er, opts, trackers;
|
var app, client, dbg, er, opts, rtcConfig, trackers;
|
||||||
|
|
||||||
trackers = [['wss://tracker.webtorrent.io'], ['wss://tracker.btorrent.xyz']];
|
trackers = [['wss://tracker.btorrent.xyz']];
|
||||||
|
|
||||||
opts = {
|
opts = {
|
||||||
announce: trackers,
|
announce: trackers
|
||||||
announceList: trackers,
|
};
|
||||||
rtcConfig: {
|
|
||||||
|
rtcConfig = {
|
||||||
"iceServers": [
|
"iceServers": [
|
||||||
{
|
{
|
||||||
"url": "stun:23.21.150.121",
|
"url": "stun:23.21.150.121",
|
||||||
|
@ -39,10 +40,11 @@
|
||||||
"username": "louis%40mozilla.com"
|
"username": "louis%40mozilla.com"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
client = new WebTorrent(opts);
|
client = new WebTorrent({
|
||||||
|
rtcConfig: rtcConfig
|
||||||
|
});
|
||||||
|
|
||||||
dbg = function(string, torrent, color) {
|
dbg = function(string, torrent, color) {
|
||||||
color = color != null ? color : '#333333';
|
color = color != null ? color : '#333333';
|
||||||
|
|
|
@ -18,7 +18,7 @@ html(ng-app='bTorrent', lang='en')
|
||||||
header
|
header
|
||||||
h1
|
h1
|
||||||
| βTorrent
|
| βTorrent
|
||||||
span.version v0.7.0
|
span.version v0.7.1
|
||||||
|
|
||||||
.container
|
.container
|
||||||
.row
|
.row
|
||||||
|
|
Loading…
Reference in a new issue