Onionr/src/communicatorutils/restarttor.py

6 lines
148 B
Python
Raw Normal View History

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