fix(purevpn): update servers Zip file download URL (#915)

- Fix PureVPN zip file download link
- Update all PureVPN server information
This commit is contained in:
Mirco Ianese
2022-03-28 21:47:40 +02:00
committed by GitHub
parent a97fd35d6e
commit 19b184adba
2 changed files with 1467 additions and 426 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -22,7 +22,7 @@ var ErrNotEnoughServers = errors.New("not enough servers found")
func GetServers(ctx context.Context, client *http.Client,
unzipper unzip.Unzipper, presolver resolver.Parallel, minServers int) (
servers []models.PurevpnServer, warnings []string, err error) {
const url = "https://s3-us-west-1.amazonaws.com/heartbleed/windows/New+OVPN+Files.zip"
const url = "https://d32d3g1fvkpl8y.cloudfront.net/heartbleed/windows/New+OVPN+Files.zip"
contents, err := unzipper.FetchAndExtract(ctx, url)
if err != nil {
return nil, nil, err