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());
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue