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