Onionr/src/communicatorutils/restarttor.py
2019-11-21 02:23:58 -06:00

6 lines
148 B
Python

import netcontroller
def restart(comm_inst):
net = comm_inst.shared_state.get(netcontroller.NetController)
net.killTor()
net.startTor()