summaryrefslogtreecommitdiff
path: root/internal/api
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-03-14 12:21:20 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2024-03-14 16:04:20 +0100
commitb98fbee125dd15bbd083de62f7b636ccd0e0248e (patch)
tree9ae45596806e0f4e6a16d78c9675e936b5fc278e /internal/api
parentc1c2011ec83553a2de7661f89383be4b29883db6 (diff)
All: Make WireGuard support mandatory
Diffstat (limited to 'internal/api')
-rw-r--r--internal/api/profiles/profiles.go15
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)