From e172e37c58c1d4ab48e3dcccacb8707c25e0d2bf Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Mon, 30 Jul 2007 21:12:29 +0000 Subject: * Added GetLocalHost() to Util * ExternalHostName supports "SYSTEMIP" again. --- OpenSim/Framework/General/Types/RegionInfo.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'OpenSim/Framework/General/Types') diff --git a/OpenSim/Framework/General/Types/RegionInfo.cs b/OpenSim/Framework/General/Types/RegionInfo.cs index 57bb398..ef05534 100644 --- a/OpenSim/Framework/General/Types/RegionInfo.cs +++ b/OpenSim/Framework/General/Types/RegionInfo.cs @@ -207,7 +207,14 @@ namespace OpenSim.Framework.Types this.m_internalEndPoint.Port = (int)configuration_result; break; case "external_host_name": - this.m_externalHostName = (string)configuration_result; + if ((string)configuration_result != "SYSTEMIP") + { + this.m_externalHostName = (string)configuration_result; + } + else + { + this.m_externalHostName = Util.GetLocalHost().ToString(); + } break; case "terrain_file": this.estateSettings.terrainFile = (string)configuration_result; -- cgit v1.1