aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server/Handlers/Hypergrid/HomeAgentHandlers.cs
diff options
context:
space:
mode:
authorDiva Canto2011-01-09 16:52:41 -0800
committerDiva Canto2011-01-09 16:52:41 -0800
commite80bcc0049c9e60e052969aaf8582fa2b867f879 (patch)
treed3c736429646749d928fc61b19ef9acec7de6603 /OpenSim/Server/Handlers/Hypergrid/HomeAgentHandlers.cs
parentAdded more debug messages under the -verbose option. (diff)
downloadopensim-SC-e80bcc0049c9e60e052969aaf8582fa2b867f879.zip
opensim-SC-e80bcc0049c9e60e052969aaf8582fa2b867f879.tar.gz
opensim-SC-e80bcc0049c9e60e052969aaf8582fa2b867f879.tar.bz2
opensim-SC-e80bcc0049c9e60e052969aaf8582fa2b867f879.tar.xz
Improved debug messages to track what is going on with the XFF header
Diffstat (limited to '')
-rw-r--r--OpenSim/Server/Handlers/Hypergrid/HomeAgentHandlers.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Server/Handlers/Hypergrid/HomeAgentHandlers.cs b/OpenSim/Server/Handlers/Hypergrid/HomeAgentHandlers.cs
index a5ec4f2..0066bd4 100644
--- a/OpenSim/Server/Handlers/Hypergrid/HomeAgentHandlers.cs
+++ b/OpenSim/Server/Handlers/Hypergrid/HomeAgentHandlers.cs
@@ -217,6 +217,8 @@ namespace OpenSim.Server.Handlers.Hypergrid
217 Hashtable headers = (Hashtable)request["headers"]; 217 Hashtable headers = (Hashtable)request["headers"];
218 if (headers.ContainsKey("X-Forwarded-For") && headers["X-Forwarded-For"] != null) 218 if (headers.ContainsKey("X-Forwarded-For") && headers["X-Forwarded-For"] != null)
219 { 219 {
220 m_log.DebugFormat("[HOME AGENT HANDLER]: XFF is {0}", headers["X-Forwarded-For"]);
221
220 IPEndPoint ep = Util.GetClientIPFromXFF((string)headers["X-Forwarded-For"]); 222 IPEndPoint ep = Util.GetClientIPFromXFF((string)headers["X-Forwarded-For"]);
221 if (ep != null) 223 if (ep != null)
222 return ep.Address.ToString(); 224 return ep.Address.ToString();