hotfix(protonvpn): drop P2P_ONLY in favor of PORT_FORWARD_ONLY
This commit is contained in:
@@ -65,10 +65,6 @@ func filterServer(server models.Server,
|
||||
return true
|
||||
}
|
||||
|
||||
if *selection.P2POnly && !server.P2P {
|
||||
return true
|
||||
}
|
||||
|
||||
if filterByPossibilities(server.Country, selection.Countries) {
|
||||
return true
|
||||
}
|
||||
|
||||
@@ -141,19 +141,6 @@ func Test_FilterServers(t *testing.T) {
|
||||
{Tor: true, VPN: vpn.OpenVPN, UDP: true},
|
||||
},
|
||||
},
|
||||
"filter by P2P only": {
|
||||
selection: settings.ServerSelection{
|
||||
P2POnly: boolPtr(true),
|
||||
}.WithDefaults(providers.Protonvpn),
|
||||
servers: []models.Server{
|
||||
{P2P: false, VPN: vpn.OpenVPN, UDP: true},
|
||||
{P2P: true, VPN: vpn.OpenVPN, UDP: true},
|
||||
{P2P: false, VPN: vpn.OpenVPN, UDP: true},
|
||||
},
|
||||
filtered: []models.Server{
|
||||
{P2P: true, VPN: vpn.OpenVPN, UDP: true},
|
||||
},
|
||||
},
|
||||
"filter by owned": {
|
||||
selection: settings.ServerSelection{
|
||||
OwnedOnly: boolPtr(true),
|
||||
|
||||
Reference in New Issue
Block a user