From 3a554de6e2350e0c282e3ede3b538fb5c32923c2 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Tue, 17 Jul 2007 19:40:22 +0000 Subject: * Applying babblefrog's DNS patches from issue #188 --- OpenSim/Region/Communications/OGS1/OGS1GridServices.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Region/Communications/OGS1') diff --git a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs index 5ddad00..99e2b20 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs @@ -117,7 +117,7 @@ namespace OpenSim.Region.Communications.OGS1 uint regY = Convert.ToUInt32(n["y"]); if ((regionInfo.RegionLocX != regX) || (regionInfo.RegionLocY != regY)) { - string externalIpStr = (string)n["sim_ip"]; + string externalIpStr = Dns.GetHostByName((string)n["sim_ip"]).AddressList[0].ToString(); uint port = Convert.ToUInt32(n["sim_port"]); string externalUri = (string)n["sim_uri"]; -- cgit v1.1