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/Framework/General/Types/RegionInfo.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/General/Types/RegionInfo.cs b/OpenSim/Framework/General/Types/RegionInfo.cs index a216b52..c347918 100644 --- a/OpenSim/Framework/General/Types/RegionInfo.cs +++ b/OpenSim/Framework/General/Types/RegionInfo.cs @@ -210,9 +210,10 @@ namespace OpenSim.Framework.Types this.DataStore = GetString(configData, "Datastore", "localworld.yap", "Filename for local storage"); - IPAddress internalAddress = GetIPAddress(configData, "InternalIPAddress", "0.0.0.0", "Internal IP Address for UDP client connections"); + string internalAddress = GetString(configData, "InternalIPAddress", "0.0.0.0", "Internal IP Address for UDP client connections").ToString(); int internalPort = GetIPPort(configData, "InternalIPPort", "9000", "Internal IP Port for UDP client connections"); - m_internalEndPoint = new IPEndPoint(internalAddress, internalPort); + IPAddress internalIPAddress = Dns.GetHostByName(internalAddress).AddressList[0]; + m_internalEndPoint = new IPEndPoint(internalIPAddress, internalPort); m_externalHostName = GetString(configData, "ExternalHostName", "127.0.0.1", "External Host Name"); -- cgit v1.1