final
This commit is contained in:
parent
92bef6e9f6
commit
f432c72b3f
|
@ -73,7 +73,7 @@ const Tor = (function () {
|
||||||
function ($next) {
|
function ($next) {
|
||||||
temp.open('txt',function (err, file) {
|
temp.open('txt',function (err, file) {
|
||||||
if (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)
|
fs.close(file.fd)
|
||||||
}
|
}
|
||||||
$next(err, (file && file.path));
|
$next(err, (file && file.path));
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const shell = require('shelljs');
|
const shell = require('shelljs');
|
||||||
const HOSTS = shell.cat(process.cwd()+'/config/hosts')
|
const HOSTS = shell.cat(__dirname+'/../config/hosts')
|
||||||
.split("\n")
|
.split("\n")
|
||||||
.filter((host) => (host[0] !== '#') && host.trim().length)
|
.filter((host) => (host[0] !== '#') && host.trim().length)
|
||||||
.map((line) => line.split(' '));
|
.map((line) => line.split(' '));
|
||||||
|
|
Loading…
Reference in a new issue