trusts method

bool trusts(
  1. String ip
)

is ip one of our proxies?

Implementation

bool trusts(String ip) {
  if (_any) return true;
  InternetAddress? address = InternetAddress.tryParse(ip);
  if (address == null) return false;
  for (_Cidr range in _ranges) {
    if (range.contains(address)) return true;
  }
  return false;
}