final
This commit is contained in:
parent
92bef6e9f6
commit
f432c72b3f
|
@ -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));
|
||||
|
|
|
@ -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(' '));
|
||||
|
|
Loading…
Reference in a new issue