fix the fix

This commit is contained in:
Feross Aboukhadijeh 2014-04-11 21:57:19 -07:00
parent 00da5d0281
commit 8eba7da318

View File

@ -28,7 +28,7 @@ function Client (peerId, port, torrent, opts) {
// required
self._peerId = Buffer.isBuffer(peerId)
? peerId
: new Buffer(torrent.peerId, 'utf8')
: new Buffer(peerId, 'utf8')
self._port = port
self._infoHash = Buffer.isBuffer(torrent.infoHash)
? torrent.infoHash