summaryrefslogtreecommitdiff
path: root/wrappers/python/eduvpn_common/main.py
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-11-14 14:59:20 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2024-12-19 10:50:36 +0100
commit4de4d76ad1ef1dc52b6e2e03c4fc81d4ea8d467e (patch)
treef09aadb416c61c94eb703d950b1689645aad4c4c /wrappers/python/eduvpn_common/main.py
parent2f3a9d0c1687e6f591ccdb7d44a36cdc09359321 (diff)
ProxyGuard: Add a restart function
Diffstat (limited to 'wrappers/python/eduvpn_common/main.py')
-rw-r--r--wrappers/python/eduvpn_common/main.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/wrappers/python/eduvpn_common/main.py b/wrappers/python/eduvpn_common/main.py
index 04a2302..8d78afd 100644
--- a/wrappers/python/eduvpn_common/main.py
+++ b/wrappers/python/eduvpn_common/main.py
@@ -37,6 +37,11 @@ class Proxyguard(object):
forwardError(peer_ips_err)
return json.loads(peer_ips)
+ def restart(self):
+ restart_err = self.parent.go_function(self.parent.lib.ProxyguardRestart, self.handler)
+ if restart_err:
+ forwardError(restart_err)
+
class WrappedError(Exception):
def __init__(self, translations, language, misc):