constant TRUSTED_PROXIES
Ruby on Rails 3.1.12
Since v3.0.20 Last seen in v3.1.12Available in: v3.0.20 v3.1.12
Which IP addresses are “trusted proxies” that can be stripped from the right-hand-side of X-Forwarded-For.
en.wikipedia.org/wiki/Private_network#Private_IPv4_address_spaces.