Onionr/onionr/communicatorutils/restarttor.py

6 lines
148 B
Python
Raw Permalink Normal View History

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