mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
Thanks, cmickeyb, for a patch that addresses secure inventory assuming IP addresses in configuration. Fix issue 1812.
This commit is contained in:
@@ -60,9 +60,11 @@ namespace OpenSim.Grid.InventoryServer
|
||||
{
|
||||
m_log.InfoFormat("[GRID AGENT INVENTORY]: checking trusted source {0}", peer.ToString());
|
||||
UriBuilder ub = new UriBuilder(m_userserver_url);
|
||||
if (ub.Host == peer.Address.ToString())
|
||||
{
|
||||
return true;
|
||||
IPAddress[] uaddrs = Dns.GetHostAddresses(ub.Host);
|
||||
foreach (IPAddress uaddr in uaddrs) {
|
||||
if (uaddr.Equals(peer.Address)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user