diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2013-01-02 15:27:20 -0800 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2013-01-02 15:27:20 -0800 |
commit | c79fb2ac8f7951a2f178413dbbfdeb4d015afacf (patch) | |
tree | 255a7267c3679a0d8f4ec7ffdb01505858819448 /guides | |
parent | 9f200fb296da721d50af53712d1e7998a5140e76 (diff) | |
parent | 75dcdbc84e53cd824c4f1c3e4cb82c40f27010c8 (diff) | |
download | rails-c79fb2ac8f7951a2f178413dbbfdeb4d015afacf.tar.gz rails-c79fb2ac8f7951a2f178413dbbfdeb4d015afacf.tar.bz2 rails-c79fb2ac8f7951a2f178413dbbfdeb4d015afacf.zip |
Merge pull request #7980 from steveklabnik/issue_7979
Restore original remote_ip algorithm.
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/configuring.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md index 6e93932d49..5fe8e2fba6 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -197,7 +197,7 @@ Every Rails application comes with a standard set of middleware which it uses in * `Rails::Rack::Logger` notifies the logs that the request has began. After request is complete, flushes all the logs. * `ActionDispatch::ShowExceptions` rescues any exception returned by the application and renders nice exception pages if the request is local or if `config.consider_all_requests_local` is set to `true`. If `config.action_dispatch.show_exceptions` is set to `false`, exceptions will be raised regardless. * `ActionDispatch::RequestId` makes a unique X-Request-Id header available to the response and enables the `ActionDispatch::Request#uuid` method. -* `ActionDispatch::RemoteIp` checks for IP spoofing attacks. Configurable with the `config.action_dispatch.ip_spoofing_check` and `config.action_dispatch.trusted_proxies` settings. +* `ActionDispatch::RemoteIp` checks for IP spoofing attacks and gets valid `client_ip` from request headers. Configurable with the `config.action_dispatch.ip_spoofing_check`, and `config.action_dispatch.trusted_proxies` options. * `Rack::Sendfile` intercepts responses whose body is being served from a file and replaces it with a server specific X-Sendfile header. Configurable with `config.action_dispatch.x_sendfile_header`. * `ActionDispatch::Callbacks` runs the prepare callbacks before serving the request. * `ActiveRecord::ConnectionAdapters::ConnectionManagement` cleans active connections after each request, unless the `rack.test` key in the request environment is set to `true`. |