From e85070a3fb601e1872d121ce3c1c9d39f8f41036 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Wed, 23 Oct 2024 11:31:39 +0200 Subject: All: Refactor to latest ProxyGuard --- client/client.go | 8 -------- 1 file changed, 8 deletions(-) (limited to 'client/client.go') diff --git a/client/client.go b/client/client.go index e5a39c0..e8fc02c 100644 --- a/client/client.go +++ b/client/client.go @@ -49,9 +49,6 @@ type Client struct { // cfg is the config cfg *config.Config - // proxy is proxyguard - proxy Proxy - mu sync.Mutex discoMan *discovery.Manager @@ -557,11 +554,6 @@ func (c *Client) retrieveTokens(sid string, t srvtypes.Type) (*eduoauth.Token, e // Cleanup cleans up the VPN connection by sending a /disconnect func (c *Client) Cleanup(ck *cookie.Cookie) error { defer c.TrySave() - // cleanup proxyguard - cerr := c.proxy.Cancel() - if cerr != nil { - log.Logger.Debugf("ProxyGuard cancel gave an error: %v", cerr) - } srv, err := c.Servers.CurrentServer() if err != nil { return i18nerr.WrapInternal(err, "The current server was not found when cleaning up the connection") -- cgit v1.2.3