diff options
author | Diva Canto | 2011-01-09 16:52:41 -0800 |
---|---|---|
committer | Diva Canto | 2011-01-09 16:52:41 -0800 |
commit | e80bcc0049c9e60e052969aaf8582fa2b867f879 (patch) | |
tree | d3c736429646749d928fc61b19ef9acec7de6603 /OpenSim/Server/Handlers/Simulation | |
parent | Added more debug messages under the -verbose option. (diff) | |
download | opensim-SC_OLD-e80bcc0049c9e60e052969aaf8582fa2b867f879.zip opensim-SC_OLD-e80bcc0049c9e60e052969aaf8582fa2b867f879.tar.gz opensim-SC_OLD-e80bcc0049c9e60e052969aaf8582fa2b867f879.tar.bz2 opensim-SC_OLD-e80bcc0049c9e60e052969aaf8582fa2b867f879.tar.xz |
Improved debug messages to track what is going on with the XFF header
Diffstat (limited to 'OpenSim/Server/Handlers/Simulation')
-rw-r--r-- | OpenSim/Server/Handlers/Simulation/AgentHandlers.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs index 24ae81f..9c41bcb 100644 --- a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs +++ b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs | |||
@@ -202,6 +202,8 @@ namespace OpenSim.Server.Handlers.Simulation | |||
202 | Hashtable headers = (Hashtable)request["headers"]; | 202 | Hashtable headers = (Hashtable)request["headers"]; |
203 | if (headers.ContainsKey("X-Forwarded-For") && headers["X-Forwarded-For"] != null) | 203 | if (headers.ContainsKey("X-Forwarded-For") && headers["X-Forwarded-For"] != null) |
204 | { | 204 | { |
205 | m_log.DebugFormat("[AGENT HANDLER]: XFF is {0}", headers["X-Forwarded-For"]); | ||
206 | |||
205 | IPEndPoint ep = Util.GetClientIPFromXFF((string)headers["X-Forwarded-For"]); | 207 | IPEndPoint ep = Util.GetClientIPFromXFF((string)headers["X-Forwarded-For"]); |
206 | if (ep != null) | 208 | if (ep != null) |
207 | return ep.Address.ToString(); | 209 | return ep.Address.ToString(); |