[hunchentoot-devel] real-remote-addr and proxy chains

Robert J. Macomber tbnl at rojoma.com
Sun Nov 5 21:18:50 UTC 2006


On Sun, Nov 05, 2006 at 09:59:24PM +0100, Edi Weitz wrote:
> Er, if the proxies add to the end of the list (which I didn't take
> into account), it'd be better to return the first and not the last
> element of the list, right?

Depends on whether you're interested in the user's (claimed) real
address, or the address the user presents to the web server to which
he thinks he's speaking.  In my case, I'm interested in the latter
(that is, I'm just interested in what REMOTE-ADDR would be if
Hunchentoot weren't behind a server-side proxy).  Having looked at the
documentation for sessions in the past five minutes, I see that that
machinery is interested in the former.
-- 
Robert Macomber
tbnl at rojoma.com



More information about the Tbnl-devel mailing list