mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
adding support for IP EndPoint whitelisting in HttpServer code.
This commit is contained in:
@@ -165,11 +165,14 @@ namespace OpenSim.Framework.Servers
|
||||
if (null != endPointsRegex)
|
||||
{
|
||||
// TODO: following code requires code changes to
|
||||
// HttpServer.HttpRequest
|
||||
// HttpServer.HttpRequest to become functional
|
||||
|
||||
// IPEndPoint remote = HttpServer.HttpRequest.RemoteIPEndPoint;
|
||||
// Match epm = endPointsRegex.Match(remote.ToString());
|
||||
// if (!epm.Success) continue;
|
||||
IPEndPoint remote = req.RemoteIPEndPoint;
|
||||
if (null != remote)
|
||||
{
|
||||
Match epm = endPointsRegex.Match(remote.ToString());
|
||||
if (!epm.Success) continue;
|
||||
}
|
||||
}
|
||||
|
||||
// whitelist ok, now check path
|
||||
|
||||
Reference in New Issue
Block a user