From b98fbee125dd15bbd083de62f7b636ccd0e0248e Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Thu, 14 Mar 2024 12:21:20 +0100 Subject: All: Make WireGuard support mandatory --- client/client.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'client/client.go') diff --git a/client/client.go b/client/client.go index d97d6e0..73f94d3 100644 --- a/client/client.go +++ b/client/client.go @@ -34,9 +34,6 @@ type Client struct { // The fsm FSM fsm.FSM - // Whether or not this client supports WireGuard - SupportsWireguard bool - // Whether to enable debugging Debug bool @@ -145,16 +142,13 @@ func New(name string, version string, directory string, stateCallback func(FSMSt // Initialize the FSM c.FSM = newFSM(stateCallback, directory, debug) - // By default we support wireguard - c.SupportsWireguard = true - // Debug only if given c.Debug = debug c.cfg = config.NewFromDirectory(directory) // set the servers - c.Servers = server.NewServers(c.Name, c, c.SupportsWireguard, c.cfg.V2) + c.Servers = server.NewServers(c.Name, c, c.cfg.V2) return c, nil } -- cgit v1.2.3