Thanks, cmickeyb, for a patch that addresses secure inventory assuming IP addresses in configuration. Fix issue 1812.
parent
9af05d0bc3
commit
635b715880
|
@ -60,9 +60,11 @@ namespace OpenSim.Grid.InventoryServer
|
||||||
{
|
{
|
||||||
m_log.InfoFormat("[GRID AGENT INVENTORY]: checking trusted source {0}", peer.ToString());
|
m_log.InfoFormat("[GRID AGENT INVENTORY]: checking trusted source {0}", peer.ToString());
|
||||||
UriBuilder ub = new UriBuilder(m_userserver_url);
|
UriBuilder ub = new UriBuilder(m_userserver_url);
|
||||||
if (ub.Host == peer.Address.ToString())
|
IPAddress[] uaddrs = Dns.GetHostAddresses(ub.Host);
|
||||||
{
|
foreach (IPAddress uaddr in uaddrs) {
|
||||||
return true;
|
if (uaddr.Equals(peer.Address)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue