dperson / torproxy

GNU Affero General Public License v3.0
515 stars 144 forks source link

Allow the use of the control port #16

Closed slampenny closed 7 years ago

slampenny commented 7 years ago

It looks like you've set up a control port in the dockerfile at 9051. It would be great if you could add a hashedpassword environment variable so that we can trigger a new tor circuit through that port using a python command such as:

from stem import Signal
from stem.control import Controller
with Controller.from_port(port = 9051) as controller:
    controller.autenticate()
    controller.signal(Signal.NEWNYM)
dperson commented 7 years ago

Okay, it should be in the new version that I just pushed, thanks for the suggestion.

slampenny commented 7 years ago

Wow. That what fast. You rock! Thanks!