.
This commit is contained in:
@@ -155,3 +155,21 @@ def disconnect_network(ssid):
|
||||
return False
|
||||
|
||||
return True
|
||||
|
||||
|
||||
def vpn_connected():
|
||||
if run_subprocess("nordvpn status").find("Disconnected") != -1:
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
def vpn_connect():
|
||||
if run_subprocess("nordvpn c").find("connected to") != -1:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
def vpn_disconnect():
|
||||
if run_subprocess("nordvpn d").find("You are disconnected from NordVPN") != -1:
|
||||
return True
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user