hotfix(nordvpn): update url
This commit is contained in:
@@ -14,9 +14,9 @@ var (
|
|||||||
|
|
||||||
func fetchAPI(ctx context.Context, client *http.Client,
|
func fetchAPI(ctx context.Context, client *http.Client,
|
||||||
recommended bool, limit uint) (data []serverData, err error) {
|
recommended bool, limit uint) (data []serverData, err error) {
|
||||||
url := "https://api.nordvpn.com/v1/servers/"
|
url := "https://api.nordvpn.com/v1/servers"
|
||||||
if recommended {
|
if recommended {
|
||||||
url += "recommendations"
|
url += "/recommendations"
|
||||||
}
|
}
|
||||||
url += fmt.Sprintf("?limit=%d", limit) // 0 means no limit
|
url += fmt.Sprintf("?limit=%d", limit) // 0 means no limit
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user