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 --- internal/api/profiles/profiles.go | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'internal/api/profiles/profiles.go') diff --git a/internal/api/profiles/profiles.go b/internal/api/profiles/profiles.go index 1df17e3..eba5ece 100644 --- a/internal/api/profiles/profiles.go +++ b/internal/api/profiles/profiles.go @@ -100,21 +100,6 @@ func (p *Profile) HasWireGuard() bool { return hasProtocol(p.VPNProtoList, protocol.WireGuard) } -// FilterWireGuard gets a profile list but without WireGuard profiles -func (i Info) FilterWireGuard() *Info { - var ret []Profile - for _, p := range i.Info.ProfileList { - if !p.HasOpenVPN() { - continue - } - } - return &Info{ - Info: ListInfo{ - ProfileList: ret, - }, - } -} - // Public gets the server list as a structure that we return to clients func (i Info) Public() server.Profiles { m := make(map[string]server.Profile) -- cgit v1.2.3