2019-08-10 01:04:56 +00:00
|
|
|
from stem.control import Controller
|
|
|
|
|
|
|
|
import config
|
|
|
|
|
2019-12-12 08:47:33 +00:00
|
|
|
|
2019-08-10 01:04:56 +00:00
|
|
|
def get_controller():
|
|
|
|
c = Controller.from_port(port=config.get('tor.controlPort'))
|
|
|
|
c.authenticate(config.get('tor.controlpassword'))
|
|
|
|
return c
|