From 635b7158801bace4d974526f7946b1a2c45db427 Mon Sep 17 00:00:00 2001 From: Mike Mazur Date: Thu, 24 Jul 2008 00:32:06 +0000 Subject: Thanks, cmickeyb, for a patch that addresses secure inventory assuming IP addresses in configuration. Fix issue 1812. --- OpenSim/Grid/InventoryServer/GridInventoryService.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'OpenSim/Grid') diff --git a/OpenSim/Grid/InventoryServer/GridInventoryService.cs b/OpenSim/Grid/InventoryServer/GridInventoryService.cs index 78f33a3..b8a0436 100644 --- a/OpenSim/Grid/InventoryServer/GridInventoryService.cs +++ b/OpenSim/Grid/InventoryServer/GridInventoryService.cs @@ -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; } -- cgit v1.1