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 /exports | |
| parent | c1c2011ec83553a2de7661f89383be4b29883db6 (diff) | |
All: Make WireGuard support mandatory
Diffstat (limited to 'exports')
| -rw-r--r-- | exports/exports.go | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/exports/exports.go b/exports/exports.go index 28b6e42..a955899 100644 --- a/exports/exports.go +++ b/exports/exports.go @@ -837,26 +837,6 @@ func RenewSession(c C.uintptr_t) *C.char { return getCError(renewSessionErr) } -// SetSupportWireguard enables or disables WireGuard for the client. -// *WARNING: This function will be removed* -// -// By default WireGuard support is enabled -// To disable it you can pass a 0 int to this -// -// `support` thus indicates whether or not to enable WireGuard -// An error is returned if this is not possible -// -//export SetSupportWireguard -func SetSupportWireguard(support C.int) *C.char { - state, stateErr := getVPNState() - if stateErr != nil { - return getCError(stateErr) - } - // TODO: Do not do any nested struct member here - state.Servers.WGSupport = support != 0 - return nil -} - // StartFailover starts the 'failover' procedure in eduvpn-common // // Failover has one primary goal: check if the VPN can reach the gateway. |
