diff options
Diffstat (limited to 'internal/api/profiles/profiles.go')
| -rw-r--r-- | internal/api/profiles/profiles.go | 15 |
1 files changed, 0 insertions, 15 deletions
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) |
