feat(protonvpn): feature filters (#2182)
- `SECURE_CORE_ONLY` - `TOR_ONLY` - `P2P_ONLY`
This commit is contained in:
@@ -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
Reference in New Issue
Block a user