mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
check XFF headers of caller, but be quiet about them
This commit is contained in:
@@ -225,8 +225,8 @@ namespace OpenSim.Server.Handlers.MapImage
|
||||
|
||||
private System.Net.IPAddress GetCallerIP(IOSHttpRequest request)
|
||||
{
|
||||
if (!m_Proxy)
|
||||
return request.RemoteIPEndPoint.Address;
|
||||
// if (!m_Proxy)
|
||||
// return request.RemoteIPEndPoint.Address;
|
||||
|
||||
// We're behind a proxy
|
||||
string xff = "X-Forwarded-For";
|
||||
@@ -236,7 +236,7 @@ namespace OpenSim.Server.Handlers.MapImage
|
||||
|
||||
if (xffValue == null || (xffValue != null && xffValue == string.Empty))
|
||||
{
|
||||
m_log.WarnFormat("[MAP IMAGE HANDLER]: No XFF header");
|
||||
// m_log.WarnFormat("[MAP IMAGE HANDLER]: No XFF header");
|
||||
return request.RemoteIPEndPoint.Address;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user