ring.middleware.proxy-headers

Middleware for handling headers set by HTTP proxies.

forwarded-remote-addr-request

(forwarded-remote-addr-request request)
Change the :remote-addr key of the request map to the last value present in
the X-Forwarded-For header. See: wrap-forwarded-remote-addr.

wrap-forwarded-remote-addr

(wrap-forwarded-remote-addr handler)
Middleware that changes the :remote-addr of the request map to the
last value present in the X-Forwarded-For header.