From f432c72b3f6284fba6b1ea8417457a235860246b Mon Sep 17 00:00:00 2001 From: Zachary Boyd Date: Tue, 29 Dec 2015 21:44:48 -0500 Subject: [PATCH] final --- lib/Tor.js | 2 +- lib/hosts.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Tor.js b/lib/Tor.js index 824ff71..d7083da 100644 --- a/lib/Tor.js +++ b/lib/Tor.js @@ -73,7 +73,7 @@ const Tor = (function () { function ($next) { temp.open('txt',function (err, file) { if (file) { - fs.write(file.fd, shell.cat(process.cwd()+'/config/torrc')); + fs.write(file.fd, shell.cat(__dirname'/../config/torrc')); fs.close(file.fd) } $next(err, (file && file.path)); diff --git a/lib/hosts.js b/lib/hosts.js index 284b0a2..70bf08e 100644 --- a/lib/hosts.js +++ b/lib/hosts.js @@ -1,5 +1,5 @@ const shell = require('shelljs'); -const HOSTS = shell.cat(process.cwd()+'/config/hosts') +const HOSTS = shell.cat(__dirname+'/../config/hosts') .split("\n") .filter((host) => (host[0] !== '#') && host.trim().length) .map((line) => line.split(' '));