summaryrefslogtreecommitdiff
path: root/wrappers/python/main.py
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-10-11 10:19:56 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-10-11 12:42:11 +0200
commit565237c14a303a46d62d240b35c6f0082424256a (patch)
tree522f2aeb441a3eb22b6d5e05e66ef348241b2e66 /wrappers/python/main.py
parent17e261dd224bc67f031b80930490768ea54353db (diff)
Client: Refactor out adding a Server from getting a config
Diffstat (limited to 'wrappers/python/main.py')
-rw-r--r--wrappers/python/main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wrappers/python/main.py b/wrappers/python/main.py
index 5604452..4881828 100644
--- a/wrappers/python/main.py
+++ b/wrappers/python/main.py
@@ -67,7 +67,7 @@ def setup_callbacks(_eduvpn: eduvpn.EduVPN) -> None:
# The main entry point
if __name__ == "__main__":
- _eduvpn = eduvpn.EduVPN("org.eduvpn.app.linux", "configs")
+ _eduvpn = eduvpn.EduVPN("org.eduvpn.app.linux", "configs", "en")
setup_callbacks(_eduvpn)
# Register with the eduVPN-common library
@@ -82,6 +82,7 @@ if __name__ == "__main__":
# Get a Wireguard/OpenVPN config
try:
+ _eduvpn.add_secure_internet("https://idp.geant.org")
config, config_type = _eduvpn.get_config_secure_internet("https://idp.geant.org")
print(f"Got a config with type: {config_type} and contents:\n{config}")
except Exception as e: