From 565237c14a303a46d62d240b35c6f0082424256a Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 11 Oct 2022 10:19:56 +0200 Subject: Client: Refactor out adding a Server from getting a config --- wrappers/python/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wrappers/python/main.py') 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: -- cgit v1.2.3