Homec4science

WebStyle: fix client ip retrieval when using proxy

Authored by Ludmila Marian <ludmila.marian@gmail.com> on Dec 20 2011, 10:53.

Description

WebStyle: fix client ip retrieval when using proxy

  • When X-FORWARDED-FOR header is present, take as remote address of the client the first address that is a well-formed IP address. (Skips 'unknown'.)
  • If none of the addresses in the list are well-formed, a default client IP adress of 10.0.0.10 is returned.

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Dec 20 2011, 13:42
Parents
R3600:769466a3ec92: WebStyle: new CFG_WEBSTYLE_REVERSE_PROXY_IPS
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:8aaf93e878f6: WebStyle: fix client ip retrieval when using proxy (authored by Ludmila Marian <ludmila.marian@gmail.com>).Dec 20 2011, 13:42