change "SYSTEMIP" to "localhost" in the create region console command prompt

0.6.9
dahlia 2010-02-17 19:56:30 -08:00
parent 10f94a3c33
commit c62a6adb2b
1 changed files with 4 additions and 4 deletions

View File

@ -474,15 +474,15 @@ namespace OpenSim.Framework
if (config.Contains("ExternalHostName"))
{
externalName = config.GetString("ExternalHostName", "SYSTEMIP");
externalName = config.GetString("ExternalHostName", "localhost");
}
else
{
externalName = MainConsole.Instance.CmdPrompt("External host name", "SYSTEMIP");
externalName = MainConsole.Instance.CmdPrompt("External host name", "localhost");
config.Set("ExternalHostName", externalName);
}
if (externalName == "SYSTEMIP")
if (externalName == "localhost")
m_externalHostName = Util.GetLocalHost().ToString();
else
m_externalHostName = externalName;
@ -788,7 +788,7 @@ namespace OpenSim.Framework
m_allow_alternate_ports = (bool) configuration_result;
break;
case "external_host_name":
if ((string) configuration_result != "SYSTEMIP")
if ((string) configuration_result != "localhost")
{
m_externalHostName = (string) configuration_result;
}