diff --git a/package.json b/package.json index d336e6d..76f365d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tor-router", - "version": "4.0.0", + "version": "4.0.1", "main": "src/index.js", "repository": "git@github.com:znetstar/tor-router.git", "author": "Zachary Boyd ", diff --git a/src/TorProcess.js b/src/TorProcess.js index ab27265..0c7e56d 100644 --- a/src/TorProcess.js +++ b/src/TorProcess.js @@ -32,7 +32,7 @@ class TorProcess extends EventEmitter { this.tor_path = tor_path; this.granax_options = granax_options; this.control_password = crypto.randomBytes(128).toString('base64'); - this._id = nanoid(); + this._id = nanoid(12); this.tor_config.DataDirectory = this.tor_config.DataDirectory || temp.mkdirSync(); } @@ -43,7 +43,7 @@ class TorProcess extends EventEmitter { resolve(); }); }); - + this.process.kill('SIGINT'); await p;