Fix certain IPs not being recognized as proxies.
Fix certain IPs (namely Digital Ocean IPs) no longer being recognized as proxy IPs by the Ipregistry.co API. Caused by some sudden change in the API.
This commit is contained in:
@@ -49,6 +49,7 @@ class IpLookup
|
||||
|
||||
def is_proxy?
|
||||
return true if ip_addr.is_tor?
|
||||
return true if response.dig(:connection, :type) == "hosting"
|
||||
response[:security].present? && response[:security].values.any?
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user