Skip to content

Commit 4daca05

Browse files
committed
bugfix: client send correct peerId to server
1 parent e87f800 commit 4daca05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function Client (peerId, port, torrent, opts) {
2828
// required
2929
self._peerId = Buffer.isBuffer(peerId)
3030
? peerId
31-
: new Buffer(torrent.infoHash, 'utf8')
31+
: new Buffer(torrent.peerId, 'utf8')
3232
self._port = port
3333
self._infoHash = Buffer.isBuffer(torrent.infoHash)
3434
? torrent.infoHash

0 commit comments

Comments
 (0)