feat(protonvpn): feature filters (#2182)

- `SECURE_CORE_ONLY`
- `TOR_ONLY`
- `P2P_ONLY`
This commit is contained in:
Koen van Zuijlen
2024-07-29 08:57:31 +02:00
committed by GitHub
parent 2bf2525bc5
commit cb99f90bb5
11 changed files with 7007 additions and 2933 deletions

View File

@@ -79,6 +79,18 @@ func filterServer(server models.Server,
return true
}
if *selection.SecureCoreOnly && !server.SecureCore {
return true
}
if *selection.TorOnly && !server.Tor {
return true
}
if *selection.P2POnly && !server.P2P {
return true
}
if filterByPossibilities(server.Country, selection.Countries) {
return true
}

File diff suppressed because it is too large Load Diff