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

@@ -41,6 +41,8 @@ func GetServers(ctx context.Context, client *http.Client, minServers int) (
}
server := models.Server{
VPN: vpn.OpenVPN,
TCP: true,
UDP: true,
Region: region,
City: city,
Hostname: node.Hostname,
@@ -56,6 +58,8 @@ func GetServers(ctx context.Context, client *http.Client, minServers int) (
}
server.VPN = vpn.Wireguard
server.UDP = true
server.TCP = false
server.OvpnX509 = ""
server.WgPubKey = wgPubKey
server.IPs = []net.IP{node.IP3}