diff options
author | UbitUmarov | 2017-05-22 22:04:20 +0100 |
---|---|---|
committer | UbitUmarov | 2017-05-22 22:05:56 +0100 |
commit | 24885819fccbecafb83cec81000416843d86a593 (patch) | |
tree | 3951d084a8a72896250c2350c3bd2bffa706ad58 /OpenSim/Server/Handlers/Map/MapAddServerConnector.cs | |
parent | receivers can't tell if there where proxies on path unless they look (diff) | |
download | opensim-SC-24885819fccbecafb83cec81000416843d86a593.zip opensim-SC-24885819fccbecafb83cec81000416843d86a593.tar.gz opensim-SC-24885819fccbecafb83cec81000416843d86a593.tar.bz2 opensim-SC-24885819fccbecafb83cec81000416843d86a593.tar.xz |
check XFF headers of caller, but be quiet about them
Diffstat (limited to 'OpenSim/Server/Handlers/Map/MapAddServerConnector.cs')
-rw-r--r-- | OpenSim/Server/Handlers/Map/MapAddServerConnector.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs b/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs index bfd73a2..331dabf 100644 --- a/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs +++ b/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs | |||
@@ -225,8 +225,8 @@ namespace OpenSim.Server.Handlers.MapImage | |||
225 | 225 | ||
226 | private System.Net.IPAddress GetCallerIP(IOSHttpRequest request) | 226 | private System.Net.IPAddress GetCallerIP(IOSHttpRequest request) |
227 | { | 227 | { |
228 | if (!m_Proxy) | 228 | // if (!m_Proxy) |
229 | return request.RemoteIPEndPoint.Address; | 229 | // return request.RemoteIPEndPoint.Address; |
230 | 230 | ||
231 | // We're behind a proxy | 231 | // We're behind a proxy |
232 | string xff = "X-Forwarded-For"; | 232 | string xff = "X-Forwarded-For"; |
@@ -236,7 +236,7 @@ namespace OpenSim.Server.Handlers.MapImage | |||
236 | 236 | ||
237 | if (xffValue == null || (xffValue != null && xffValue == string.Empty)) | 237 | if (xffValue == null || (xffValue != null && xffValue == string.Empty)) |
238 | { | 238 | { |
239 | m_log.WarnFormat("[MAP IMAGE HANDLER]: No XFF header"); | 239 | // m_log.WarnFormat("[MAP IMAGE HANDLER]: No XFF header"); |
240 | return request.RemoteIPEndPoint.Address; | 240 | return request.RemoteIPEndPoint.Address; |
241 | } | 241 | } |
242 | 242 | ||