chore(storage): tcp and udp fields for all servers

- Updater code sets UDP and TCP compatibility for all providers
- Increase servers.json model versions for affected providers (mullvad, windscribe, privado, protonvpn, privatevpn)
- Remove retro-compatibility server defaults
- Update all affected providers servers data (mullvad, windscribe, privado, protonvpn, privatevpn)
This commit is contained in:
Quentin McGaw
2022-04-22 21:25:00 +00:00
parent afa51b3ff6
commit e6c3cb078a
8 changed files with 6822 additions and 891 deletions

View File

@@ -35,14 +35,4 @@ func (s *Server) setDefaults() {
// If the VPN protocol isn't specified, assume it is OpenVPN.
s.VPN = vpn.OpenVPN
}
if !s.UDP && !s.TCP {
// If UDP and TCP are not precised:
// For OpenVPN, assume TCP and UDP are supported
// For Wireguard, UDP must be supported.
s.UDP = true
if s.VPN == vpn.OpenVPN {
s.TCP = true
}
}
}