diff options
author | Dr Scofield | 2008-07-07 11:25:09 +0000 |
---|---|---|
committer | Dr Scofield | 2008-07-07 11:25:09 +0000 |
commit | aaf8fff57e85a8f164c4ab27c5e126e91a81027f (patch) | |
tree | 37b82469367fbf071a4bd61841125a617ac26c2f /OpenSim/Framework/Servers/OSHttpRequestPump.cs | |
parent | added a hollow size constraint to box, cylinder, and prism prim meshes to pre... (diff) | |
download | opensim-SC_OLD-aaf8fff57e85a8f164c4ab27c5e126e91a81027f.zip opensim-SC_OLD-aaf8fff57e85a8f164c4ab27c5e126e91a81027f.tar.gz opensim-SC_OLD-aaf8fff57e85a8f164c4ab27c5e126e91a81027f.tar.bz2 opensim-SC_OLD-aaf8fff57e85a8f164c4ab27c5e126e91a81027f.tar.xz |
adding support for IP EndPoint whitelisting in HttpServer code.
Diffstat (limited to 'OpenSim/Framework/Servers/OSHttpRequestPump.cs')
-rw-r--r-- | OpenSim/Framework/Servers/OSHttpRequestPump.cs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/OpenSim/Framework/Servers/OSHttpRequestPump.cs b/OpenSim/Framework/Servers/OSHttpRequestPump.cs index b76fadc..4218be5 100644 --- a/OpenSim/Framework/Servers/OSHttpRequestPump.cs +++ b/OpenSim/Framework/Servers/OSHttpRequestPump.cs | |||
@@ -165,11 +165,14 @@ namespace OpenSim.Framework.Servers | |||
165 | if (null != endPointsRegex) | 165 | if (null != endPointsRegex) |
166 | { | 166 | { |
167 | // TODO: following code requires code changes to | 167 | // TODO: following code requires code changes to |
168 | // HttpServer.HttpRequest | 168 | // HttpServer.HttpRequest to become functional |
169 | 169 | ||
170 | // IPEndPoint remote = HttpServer.HttpRequest.RemoteIPEndPoint; | 170 | IPEndPoint remote = req.RemoteIPEndPoint; |
171 | // Match epm = endPointsRegex.Match(remote.ToString()); | 171 | if (null != remote) |
172 | // if (!epm.Success) continue; | 172 | { |
173 | Match epm = endPointsRegex.Match(remote.ToString()); | ||
174 | if (!epm.Success) continue; | ||
175 | } | ||
173 | } | 176 | } |
174 | 177 | ||
175 | // whitelist ok, now check path | 178 | // whitelist ok, now check path |