From 4de4d76ad1ef1dc52b6e2e03c4fc81d4ea8d467e Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Thu, 14 Nov 2024 14:59:20 +0100 Subject: ProxyGuard: Add a restart function --- wrappers/python/eduvpn_common/main.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'wrappers/python/eduvpn_common/main.py') 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): -- cgit v1.2.3