From 1865b016d0cca74cd3703db5a3b4217917988dec Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 5 Jul 2022 13:17:24 +0200 Subject: Refactor: Handling of different servers and identifiers - Uses OrgID for Secure Internet and gets the data from discovery - Uses URL for Institute/Custom and gets the data from discovery - Implements SKIP WAYF as we now have the needed data - Implements an initial change location with a default location (NL right now) --- wrappers/python/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wrappers/python/main.py') diff --git a/wrappers/python/main.py b/wrappers/python/main.py index a94281a..5422d93 100644 --- a/wrappers/python/main.py +++ b/wrappers/python/main.py @@ -68,7 +68,7 @@ if __name__ == "__main__": print("Failed registering:", e) server = input( - "Which Institute Access server do you want to connect to? (e.g. https://eduvpn.example.com): " + "Which server (Custom/Institute Access) do you want to connect to? (e.g. https://eduvpn.example.com): " ) # Ensure we have a valid http prefix @@ -78,7 +78,7 @@ if __name__ == "__main__": # Get a Wireguard/OpenVPN config try: - config, config_type = _eduvpn.get_config_institute_access(server) + config, config_type = _eduvpn.get_config_custom_server(server) except Exception as e: print("Failed to connect:", e) print(f"Got a config with type: {config_type} and contents:\n{config}") -- cgit v1.2.3