added togglenetwork module in torcontrol

This commit is contained in:
Kevin Froman 2020-11-03 03:56:24 +00:00
parent a9d0524ccc
commit a0ae62d0a3
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
from . import torcontroller
def enable_tor_network_connection():
with torcontroller.get_controller() as controller:
c.set_conf("DisableNetwork", 0)
def disable_tor_network_connection():
with torcontroller.get_controller() as controller:
c.set_conf("DisableNetwork", 1)