summaryrefslogtreecommitdiff
path: root/wrappers/python/eduvpn_common
diff options
context:
space:
mode:
Diffstat (limited to 'wrappers/python/eduvpn_common')
-rw-r--r--wrappers/python/eduvpn_common/main.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/wrappers/python/eduvpn_common/main.py b/wrappers/python/eduvpn_common/main.py
index c6bd2de..9d63c4d 100644
--- a/wrappers/python/eduvpn_common/main.py
+++ b/wrappers/python/eduvpn_common/main.py
@@ -132,13 +132,13 @@ class EduVPN(object):
if remove_err:
raise remove_err
- def get_config(self, url: str, func: callable, force_tcp: bool = False):
+ def get_config(self, url: str, func: callable, prefer_tcp: bool = False):
# Because it could be the case that a profile callback is started, store a threading event
# In the constructor, we have defined a wait event for Ask_Profile, this waits for this event to be set
# The event is set in self.set_profile
self.profile_event = threading.Event()
- config, config_type, config_err = self.go_function(func, url, force_tcp)
+ config, config_type, config_err = self.go_function(func, url, prefer_tcp)
self.profile_event = None
self.location_event = None
@@ -149,20 +149,20 @@ class EduVPN(object):
return config, config_type
def get_config_custom_server(
- self, url: str, force_tcp: bool = False
+ self, url: str, prefer_tcp: bool = False
) -> Tuple[str, str]:
- return self.get_config(url, self.lib.GetConfigCustomServer, force_tcp)
+ return self.get_config(url, self.lib.GetConfigCustomServer, prefer_tcp)
def get_config_institute_access(
- self, url: str, force_tcp: bool = False
+ self, url: str, prefer_tcp: bool = False
) -> Tuple[str, str]:
- return self.get_config(url, self.lib.GetConfigInstituteAccess, force_tcp)
+ return self.get_config(url, self.lib.GetConfigInstituteAccess, prefer_tcp)
def get_config_secure_internet(
- self, url: str, force_tcp: bool = False
+ self, url: str, prefer_tcp: bool = False
) -> Tuple[str, str]:
self.location_event = threading.Event()
- return self.get_config(url, self.lib.GetConfigSecureInternet, force_tcp)
+ return self.get_config(url, self.lib.GetConfigSecureInternet, prefer_tcp)
def go_back(self) -> None:
# Ignore the error