aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/RegionInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/RegionInfo.cs')
-rw-r--r--OpenSim/Framework/RegionInfo.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs
index ca17793..f764a34 100644
--- a/OpenSim/Framework/RegionInfo.cs
+++ b/OpenSim/Framework/RegionInfo.cs
@@ -708,7 +708,11 @@ namespace OpenSim.Framework
708 } 708 }
709 else 709 else
710 { 710 {
711 m_externalHostName = externalName; 711 IPAddress[] addrs = Dns.GetHostAddresses(externalName);
712 if (addrs.Length != 1) // If it is ambiguous or not resolveable, use it literally
713 m_externalHostName = externalName;
714 else
715 m_externalHostName = addrs[0].ToString();
712 } 716 }
713 717
714 // RegionType 718 // RegionType