Browse files

remove ignored flag, fixes warnings

  • Loading branch information...
1 parent 2d063c6 commit 9c4532bf74604ae1c52a44d1aa8c1022a312ff88 @indirect indirect committed Nov 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/middleware/remote_ip.rb
View
2 actionpack/lib/action_dispatch/middleware/remote_ip.rb
@@ -19,7 +19,7 @@ def initialize(app, check_ip_spoofing = true, custom_proxies = nil)
@app = app
@check_ip_spoofing = check_ip_spoofing
if custom_proxies
- custom_regexp = Regexp.new(custom_proxies, "i")
+ custom_regexp = Regexp.new(custom_proxies)
@trusted_proxies = Regexp.union(TRUSTED_PROXIES, custom_regexp)
else
@trusted_proxies = TRUSTED_PROXIES

0 comments on commit 9c4532b

Please sign in to comment.