fetchProxiesLegacy method

  1. @override
Future<List<Proxy>> fetchProxiesLegacy({
  1. int count = 10,
  2. bool onlyHttps = false,
  3. List<String>? countries,
})
override

Fetches proxies from various sources with legacy parameters

This is kept for backward compatibility

count is the number of proxies to fetch onlyHttps filters to only return HTTPS proxies countries filters to only return proxies from specific countries

Implementation

@override
Future<List<Proxy>> fetchProxiesLegacy({
  int count = 10,
  bool onlyHttps = false,
  List<String>? countries,
}) async {
  return _advancedProxyManager.fetchProxies(
    options: ProxyFilterOptions(
      count: count,
      onlyHttps: onlyHttps,
      countries: countries,
    ),
  );
}