This commit is contained in:
Quentin McGaw
2024-08-01 07:51:35 +00:00
parent ceb6ff4ca4
commit 1a6e8d74d6
12 changed files with 119 additions and 145 deletions

View File

@@ -50,11 +50,11 @@ func filterServer(server models.Server,
selection settings.ServerSelection) (filtered bool) {
// Note each condition is split to make sure
// we have full testing coverage.
if server.VPN != selection.VPN {
if server.VPN != vpn.Both && server.VPN != selection.VPN {
return true
}
if server.VPN != vpn.Wireguard &&
if selection.VPN == vpn.OpenVPN &&
filterByProtocol(selection, server.TCP, server.UDP) {
return true
}
@@ -119,8 +119,6 @@ func filterServer(server models.Server,
return true
}
// TODO filter port forward server for PIA
return false
}