summaryrefslogtreecommitdiff
path: root/client/proxy.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/proxy.go')
-rw-r--r--client/proxy.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/proxy.go b/client/proxy.go
index 4165c0f..349a080 100644
--- a/client/proxy.go
+++ b/client/proxy.go
@@ -20,10 +20,11 @@ func (pl *ProxyLogger) Log(msg string) {
log.Logger.Debugf("%s", msg)
}
-func (c *Client) StartProxyguard(ck *cookie.Cookie, listen string, tcpsp int, peer string) error {
// StartProxyguard starts proxyguard for proxied WireGuard connections
+func (c *Client) StartProxyguard(ck *cookie.Cookie, listen string, tcpsp int, peer string, gotFD func(fd int)) error {
var err error
proxyguard.UpdateLogger(&ProxyLogger{})
+ proxyguard.GotClientFD = gotFD
err = proxyguard.Client(ck.Context(), listen, tcpsp, peer, -1)
if err != nil {
return i18nerr.Wrap(err, "The VPN proxy exited")