From d2b64ad796b1f4f4365345d1c64893ed156e96ee Mon Sep 17 00:00:00 2001 From: Zachary Boyd Date: Tue, 11 Sep 2018 19:39:30 -0400 Subject: [PATCH] "proxyByName" is now disabled by default because most browsers do not support SOCKS authentication --- package.json | 2 +- src/TorProcess.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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;