Skip to content

Commit b071b2c

Browse files
committed
Fix Bug With Default Torrent Engine Port
1 parent 28c3564 commit b071b2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/stream/torrentUtil.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ module.exports = {
2424

2525
init(torrent) {
2626
return new Promise((resolve, reject) => {
27-
Promise.all([this.read(torrent), getPort()])
27+
Promise.all([this.read(torrent), getPort({ port: ls.isSet('peerPort') && ls('peerPort') ? ls('peerPort') : 5050 })])
2828
.spread((torrentInfo, port) => {
2929
var opts = {
3030
tracker: true,
31-
port: ls.isSet('peerPort') && ls('peerPort') != '6881' ? ls('peerPort') : port,
31+
port: port,
3232
tmp: temp,
3333
buffer: (1.5 * 1024 * 1024).toString(),
3434
connections: ls('maxPeers'),

0 commit comments

Comments
 (0)