Thanks, cmickeyb, for a patch that addresses secure inventory assuming IP addresses in configuration. Fix issue 1812.

0.6.0-stable
Mike Mazur 2008-07-24 00:32:06 +00:00
parent 9af05d0bc3
commit 635b715880
1 changed files with 5 additions and 3 deletions

View File

@ -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;
} }