remove limit=10 to get all servers

This commit is contained in:
Peter_Liu 2026-02-21 01:08:12 +08:00
parent 1ae1c16132
commit 791ca3cf8d

View file

@ -28,7 +28,7 @@ func (s *NordService) GetCountries() (string, error) {
}
func (s *NordService) GetServers(countryId string) (string, error) {
url := fmt.Sprintf("https://api.nordvpn.com/v2/servers?limit=10&filters[servers_technologies][id]=35&filters[country_id]=%s", countryId)
url := fmt.Sprintf("https://api.nordvpn.com/v2/servers?limit=0&filters[servers_technologies][id]=35&filters[country_id]=%s", countryId)
resp, err := http.Get(url)
if err != nil {
return "", err