From 01cbb80b300f92c3456d3b2965630c0783607905 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 24 Oct 2022 14:05:45 +0200 Subject: Client + Server + Exports: Implement optional WireGuard support --- client/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/server.go') diff --git a/client/server.go b/client/server.go index 9ff895a..2274378 100644 --- a/client/server.go +++ b/client/server.go @@ -22,7 +22,7 @@ func (client *Client) getConfigAuth( } client.FSM.GoTransition(STATE_REQUEST_CONFIG) - validProfile, profileErr := server.HasValidProfile(chosenServer) + validProfile, profileErr := server.HasValidProfile(chosenServer, client.SupportsWireguard) if profileErr != nil { return "", "", profileErr } @@ -36,7 +36,7 @@ func (client *Client) getConfigAuth( } // We return the error otherwise we wrap it too much - return server.GetConfig(chosenServer, preferTCP) + return server.GetConfig(chosenServer, client.SupportsWireguard, preferTCP) } // retryConfigAuth retries the getConfigAuth function if the tokens are invalid. -- cgit v1.2.3