diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-02-22 16:04:05 +0100 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-02-23 10:40:50 +0100 |
| commit | eb0c7e7251a0038963436dcd77e6d92311f0bf8f (patch) | |
| tree | 1381a84baee5f4588750941fd299bfe3c0e11c38 /wrappers/python/eduvpn_common/main.py | |
| parent | 84d3ab740d0637a88537e54110b8a6486c3bd118 (diff) | |
Wrappers Python: Add necessary callbacks for proxyguard
Diffstat (limited to 'wrappers/python/eduvpn_common/main.py')
| -rw-r--r-- | wrappers/python/eduvpn_common/main.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/wrappers/python/eduvpn_common/main.py b/wrappers/python/eduvpn_common/main.py index cd26ca4..ea0ebb3 100644 --- a/wrappers/python/eduvpn_common/main.py +++ b/wrappers/python/eduvpn_common/main.py @@ -5,6 +5,8 @@ from typing import Any, Callable, Iterator, Optional from eduvpn_common.loader import initialize_functions, load_lib from eduvpn_common.types import ( + GotProxyFD, + ProxyReady, ReadRxBytes, TokenGetter, TokenSetter, @@ -345,13 +347,14 @@ class EduVPN(object): forwardError(dropped_err) return dropped - def start_proxyguard(self, listen: str, source_port: int, peer: str): + def start_proxyguard(self, listen: str, source_port: int, peer: str, gotfd: GotProxyFD, ready: ProxyReady): proxy_err = self.go_cookie_function( self.lib.StartProxyguard, listen, source_port, peer, - 0, + gotfd, + ready, ) if proxy_err: forwardError(proxy_err) |
