XFF header again -- debug.

0.7.1-dev
Diva Canto 2011-02-08 07:50:01 -08:00
parent d627122cdc
commit 305c755cfb
1 changed files with 5 additions and 0 deletions

View File

@ -200,6 +200,11 @@ namespace OpenSim.Server.Handlers.Simulation
// We're behind a proxy
Hashtable headers = (Hashtable)request["headers"];
// DEBUG
foreach (object o in headers.Keys)
m_log.DebugFormat("XXX {0} = {1}", o.ToString(), (headers[o] == null? "null" : headers[o].ToString()));
string xff = "X-Forwarded-For";
if (headers.ContainsKey(xff.ToLower()))
xff = xff.ToLower();