Skip to content

Commit

Permalink
feat(pia/updater): use v6 API to get servers data
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Aug 16, 2024
1 parent 11c2354 commit 9233f3f
Show file tree
Hide file tree
Showing 2 changed files with 4,699 additions and 1,616 deletions.
2 changes: 1 addition & 1 deletion internal/provider/privateinternetaccess/updater/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type serverData struct {

func fetchAPI(ctx context.Context, client *http.Client) (
data apiData, err error) {
const url = "https://serverlist.piaservers.net/vpninfo/servers/v5"
const url = "https://serverlist.piaservers.net/vpninfo/servers/v6"

request, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil)
if err != nil {
Expand Down
Loading

0 comments on commit 9233f3f

Please sign in to comment.