mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
9432163c60
- return the last forwarded IP before REMOTE_ADDR to handle proxies - remove completely superfluous RemoteIpGetter class - remove duplication of trusted proxies regexp - remove unused constant from Request - move comments from Request to where they are actually relevant - edit comments for clarity of purpose The original code (confusingly) tried to return REMOTE_ADDR both at the beginning and the end of the chain of options. Since REMOTE_ADDR is _always_ set, this is kind of silly. This change leaves REMOTE_ADDR as the last option, so that proxied requests will be assigned the correct remote IP address. |
||
---|---|---|
.. | ||
session | ||
templates/rescues | ||
best_standards_support.rb | ||
callbacks.rb | ||
closed_error.rb | ||
cookies.rb | ||
flash.rb | ||
head.rb | ||
params_parser.rb | ||
reloader.rb | ||
remote_ip.rb | ||
request_id.rb | ||
rescue.rb | ||
show_exceptions.rb | ||
stack.rb | ||
static.rb |