Answer the question
In order to leave comments, you need to log in
How to restart Tor using node.js?
There is a script on node, it directs requests to api with a limited number of requests per ip.
I have set up several tor'a nodes (on different ports) and use them as a proxy.
However, their resource is quickly exhausted (their ips go into the api-server timeout).
It is required to restart the tor nodes and run the node.js script again.
Question:
is it possible for nodejs to send a command to restart the tor itself?
is it possible to get an answer from the torus that it has been restarted (otherwise, until the torus is restarted, the script will have nothing to do and it must wait)?
In which direction to dig at least?
Answer the question
In order to leave comments, you need to log in
As far as I could understand the question, I can advise you to read in the direction of exec and spawn
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question