diff options
Diffstat (limited to 'OpenSim/Grid/InventoryServer')
-rw-r--r-- | OpenSim/Grid/InventoryServer/GridInventoryService.cs | 8 |
1 files changed, 5 insertions, 3 deletions
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 | |||
60 | { | 60 | { |
61 | m_log.InfoFormat("[GRID AGENT INVENTORY]: checking trusted source {0}", peer.ToString()); | 61 | m_log.InfoFormat("[GRID AGENT INVENTORY]: checking trusted source {0}", peer.ToString()); |
62 | UriBuilder ub = new UriBuilder(m_userserver_url); | 62 | UriBuilder ub = new UriBuilder(m_userserver_url); |
63 | if (ub.Host == peer.Address.ToString()) | 63 | IPAddress[] uaddrs = Dns.GetHostAddresses(ub.Host); |
64 | { | 64 | foreach (IPAddress uaddr in uaddrs) { |
65 | return true; | 65 | if (uaddr.Equals(peer.Address)) { |
66 | return true; | ||
67 | } | ||
66 | } | 68 | } |
67 | return false; | 69 | return false; |
68 | } | 70 | } |