From 80218da58eca9c95870770f88e477891e8fdb50a Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Fri, 22 Jul 2022 17:15:34 +0200 Subject: State + FSM + Exports: Implement changing a secure internet location --- wrappers/python/src/main.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'wrappers/python/src/main.py') diff --git a/wrappers/python/src/main.py b/wrappers/python/src/main.py index 87d2b53..784e622 100644 --- a/wrappers/python/src/main.py +++ b/wrappers/python/src/main.py @@ -187,6 +187,14 @@ class EduVPN(object): if profile_err: raise Exception(profile_err) + def change_secure_location(self) -> None: + # Set the location by country code + self.location_event = threading.Event() + location_err = self.go_function(lib.ChangeSecureLocation) + + if location_err: + raise Exception(location_err) + def set_secure_location(self, country_code: str) -> None: # Set the location by country code location_err = self.go_function(lib.SetSecureLocation, country_code) -- cgit v1.2.3