This commit is contained in:
Zachary Boyd 2015-12-29 21:44:48 -05:00
parent 92bef6e9f6
commit f432c72b3f
2 changed files with 2 additions and 2 deletions

View file

@ -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));

View file

@ -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(' '));