Hello I am using v0.0.3.
I implement your code just like in the example:
var TorControl = require('tor-control')
var control = new TorControl()
control.signalNewnym(function (err, status) {
// Get a new circuit
if (err) {
return console.error(err)
}
console.log(status.messages[0]) // --> "OK"
})
But I am getting this error:
Error: Error connecting to control port: Error: connect ECONNREFUSED 127.0.0.1:9051
at Socket.<anonymous> (/Users/johndoe/Desktop/repos/simpleTor/node_modules/tor-control/index.js:62:18)
at Object.onceWrapper (events.js:422:26)
at Socket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
Any idea what is wrong?
I made sure those ports are available. I Also tried some custom ports , same error.
Thanks!
Hello I am using v0.0.3.
I implement your code just like in the example:
But I am getting this error:
Any idea what is wrong?
I made sure those ports are available. I Also tried some custom ports , same error.
Thanks!