From 53faaee84188f9dde123087845d6ad90af23c2a4 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Thu, 22 Feb 2024 16:22:07 +0100 Subject: Docs API: Re-gen --- docs/src/api/functiondocs.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/src/api/functiondocs.md b/docs/src/api/functiondocs.md index 3bf1899..3f1b214 100644 --- a/docs/src/api/functiondocs.md +++ b/docs/src/api/functiondocs.md @@ -844,7 +844,7 @@ Example Output: ```1, null``` ## StartProxyguard Signature: ```go -func StartProxyguard(c C.uintptr_t, listen *C.char, tcpsp C.int, peer *C.char, proxyFD C.ProxyFD) *C.char +func StartProxyguard(c C.uintptr_t, listen *C.char, tcpsp C.int, peer *C.char, proxyFD C.ProxyFD, proxyReady C.ProxyReady) *C.char ``` StartProxyguard starts the 'proxyguard' procedure in eduvpn-common. This proxies WireGuard UDP connections over HTTP: @@ -859,6 +859,9 @@ from the configuration that is retrieved using the `proxy` JSON key - `proxyFD` is a callback with the file descriptor as only argument. It can be used to set certain socket option, e.g. to exclude the proxy connection from going over the VPN + - `proxyReady` is a callback when the proxy is ready to be used. This is + only called when the client is not connected yet. Use this to determine + when the actual wireguard connection can be started If the proxy cannot be started it returns an error -- cgit v1.2.3