Class: WebConsole::Request::GetSecureIp
- Inherits:
-
ActionDispatch::RemoteIp::GetIp
- Object
- ActionDispatch::RemoteIp::GetIp
- WebConsole::Request::GetSecureIp
- Defined in:
- lib/web_console/request.rb
Instance Method Summary collapse
- #filter_proxies(ips) ⇒ Object
-
#initialize(env, proxies) ⇒ GetSecureIp
constructor
A new instance of GetSecureIp.
Constructor Details
#initialize(env, proxies) ⇒ GetSecureIp
Returns a new instance of GetSecureIp.
36 37 38 39 40 |
# File 'lib/web_console/request.rb', line 36 def initialize(env, proxies) @env = env @check_ip = true @proxies = proxies end |
Instance Method Details
#filter_proxies(ips) ⇒ Object
42 43 44 45 46 |
# File 'lib/web_console/request.rb', line 42 def filter_proxies(ips) ips.reject do |ip| @proxies.include?(ip) end end |