Feature: Update PIA servers using v5 PIA API

This commit is contained in:
Quentin McGaw
2020-12-30 15:54:13 +00:00
parent 1d9d49f406
commit fb8a615660
4 changed files with 102 additions and 97 deletions

View File

@@ -14,7 +14,7 @@ import (
)
func (u *updater) updatePIA(ctx context.Context) (err error) {
const url = "https://serverlist.piaservers.net/vpninfo/servers/v4"
const url = "https://serverlist.piaservers.net/vpninfo/servers/v5"
b, status, err := u.client.Get(ctx, url)
if err != nil {
return err