fixes bug
This commit is contained in:
parent
0237d1dc3f
commit
2144ebf4b0
|
@ -10,7 +10,7 @@
|
||||||
"tor-router": "bin/tor-router"
|
"tor-router": "bin/tor-router"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "bin/tor-router -l debug",
|
"start": "bin/tor-router -l debug -s -d -j 3",
|
||||||
"test": "mocha test/test.js"
|
"test": "mocha test/test.js"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -31,7 +31,7 @@ class TorProcess extends EventEmitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
new_ip() {
|
new_ip() {
|
||||||
this.log.info(`[tor-${this.process.pid}]: has requested a new identity`);
|
this.logger.info(`[tor-${this.process.pid}]: has requested a new identity`);
|
||||||
this.process.kill('SIGHUP');
|
this.process.kill('SIGHUP');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue