Onionr/static-data/official-plugins/tor/getsocks.py

10 lines
247 B
Python
Raw Permalink Normal View History

from stem.control import Controller
2022-02-18 20:39:46 +00:00
from torfilepaths import control_socket
def get_socks():
with Controller.from_socket_file(control_socket) as controller:
2022-02-21 21:15:26 +00:00
controller.authenticate()
return controller.get_listeners('SOCKS')