diff options
author | unknown | 2009-12-07 18:14:02 +0100 |
---|---|---|
committer | unknown | 2009-12-07 18:14:02 +0100 |
commit | dbd8c400ce9eb9177bb9d0b939405578ad9c3157 (patch) | |
tree | 61daf67c74c14ad10147a115f7ef673c73968840 /OpenSim/Framework/Servers/HttpServer/OSHttpRequest.cs | |
parent | Initial windlight codebase commit (diff) | |
parent | Same for the remote auth connector (diff) | |
download | opensim-SC-dbd8c400ce9eb9177bb9d0b939405578ad9c3157.zip opensim-SC-dbd8c400ce9eb9177bb9d0b939405578ad9c3157.tar.gz opensim-SC-dbd8c400ce9eb9177bb9d0b939405578ad9c3157.tar.bz2 opensim-SC-dbd8c400ce9eb9177bb9d0b939405578ad9c3157.tar.xz |
Merge branch 'careminster' into windlight
Diffstat (limited to 'OpenSim/Framework/Servers/HttpServer/OSHttpRequest.cs')
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/OSHttpRequest.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/OSHttpRequest.cs b/OpenSim/Framework/Servers/HttpServer/OSHttpRequest.cs index c53160f..bcfb0a4 100644 --- a/OpenSim/Framework/Servers/HttpServer/OSHttpRequest.cs +++ b/OpenSim/Framework/Servers/HttpServer/OSHttpRequest.cs | |||
@@ -188,7 +188,15 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
188 | try | 188 | try |
189 | { | 189 | { |
190 | IPAddress addr = IPAddress.Parse(req.Headers["remote_addr"]); | 190 | IPAddress addr = IPAddress.Parse(req.Headers["remote_addr"]); |
191 | int port = Int32.Parse(req.Headers["remote_port"]); | 191 | // sometimes req.Headers["remote_port"] returns a comma separated list, so use |
192 | // the first one in the list and log it | ||
193 | string[] strPorts = req.Headers["remote_port"].Split(new char[] { ',' }); | ||
194 | if (strPorts.Length > 1) | ||
195 | { | ||
196 | _log.ErrorFormat("[OSHttpRequest]: format exception on addr/port {0}:{1}, ignoring", | ||
197 | req.Headers["remote_addr"], req.Headers["remote_port"]); | ||
198 | } | ||
199 | int port = Int32.Parse(strPorts[0]); | ||
192 | _remoteIPEndPoint = new IPEndPoint(addr, port); | 200 | _remoteIPEndPoint = new IPEndPoint(addr, port); |
193 | } | 201 | } |
194 | catch (FormatException) | 202 | catch (FormatException) |