diff --git a/client.js b/client.js index dec7fa6..ee18dd0 100644 --- a/client.js +++ b/client.js @@ -51,7 +51,7 @@ function Client (opts) { self._peerIdBinary = self._peerIdBuffer.toString('binary') self.infoHash = typeof opts.infoHash === 'string' - ? opts.infoHash + ? opts.infoHash.toLowerCase() : opts.infoHash.toString('hex') self._infoHashBuffer = Buffer.from(self.infoHash, 'hex') self._infoHashBinary = self._infoHashBuffer.toString('binary')