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:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user