Module: AwsIpUtilities::RackRequestTrustedProxyOverride

Defined in:
lib/aws_ip_utilities/rack_request_trusted_proxy_override.rb

Instance Method Summary collapse

Instance Method Details

#trusted_proxy?(ip) ⇒ Boolean

Returns:

  • (Boolean)


2
3
4
5
6
# File 'lib/aws_ip_utilities/rack_request_trusted_proxy_override.rb', line 2

def trusted_proxy?(ip)
  return true if super(ip)
  return true if AwsIpUtilities.aws_ip?(ip)
  false
end