added togglenetwork module in torcontrol
This commit is contained in:
parent
a9d0524ccc
commit
a0ae62d0a3
11
src/netcontroller/torcontrol/togglenetwork.py
Normal file
11
src/netcontroller/torcontrol/togglenetwork.py
Normal 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)
|
Loading…
Reference in New Issue
Block a user