diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-03-14 12:21:20 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-03-14 16:04:20 +0100 |
| commit | b98fbee125dd15bbd083de62f7b636ccd0e0248e (patch) | |
| tree | 9ae45596806e0f4e6a16d78c9675e936b5fc278e /client/client.go | |
| parent | c1c2011ec83553a2de7661f89383be4b29883db6 (diff) | |
All: Make WireGuard support mandatory
Diffstat (limited to 'client/client.go')
| -rw-r--r-- | client/client.go | 8 |
1 files changed, 1 insertions, 7 deletions
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 } |
