We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28c3564 commit b071b2cCopy full SHA for b071b2c
src/utils/stream/torrentUtil.js
@@ -24,11 +24,11 @@ module.exports = {
24
25
init(torrent) {
26
return new Promise((resolve, reject) => {
27
- Promise.all([this.read(torrent), getPort()])
+ Promise.all([this.read(torrent), getPort({ port: ls.isSet('peerPort') && ls('peerPort') ? ls('peerPort') : 5050 })])
28
.spread((torrentInfo, port) => {
29
var opts = {
30
tracker: true,
31
- port: ls.isSet('peerPort') && ls('peerPort') != '6881' ? ls('peerPort') : port,
+ port: port,
32
tmp: temp,
33
buffer: (1.5 * 1024 * 1024).toString(),
34
connections: ls('maxPeers'),
0 commit comments