summaryrefslogtreecommitdiff
path: root/wrappers/python/main.py
diff options
context:
space:
mode:
authorJeroen Wijenbergh <jeroenwijenbergh@protonmail.com>2022-04-19 15:02:45 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-19 15:02:45 +0200
commit723ecacc8528be0e96db42392f1781ddf5894bea (patch)
tree1debf1d6d0c50adb32939db3cc84e5130d1fb818 /wrappers/python/main.py
parent5f40a8d10a17182f744cb7ac11087d170dd49560 (diff)
Profiles: Implement basic functionality for sending a profile_id
Diffstat (limited to 'wrappers/python/main.py')
-rw-r--r--wrappers/python/main.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/wrappers/python/main.py b/wrappers/python/main.py
index d6a568e..bc29239 100644
--- a/wrappers/python/main.py
+++ b/wrappers/python/main.py
@@ -11,6 +11,12 @@ def oauth_initialized(url):
webbrowser.open(url)
+@_eduvpn.event.on("Ask_Profile", eduvpn.StateType.Enter)
+def ask_profile(profiles):
+ print("ASK PROFILE CB", profiles)
+ _eduvpn.send_data("prefer-openvpn")
+
+
success = _eduvpn.register(debug=True)
if not success: