diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Framework/RegionInfo.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs index ee5dd37..88b62e0 100644 --- a/OpenSim/Framework/RegionInfo.cs +++ b/OpenSim/Framework/RegionInfo.cs | |||
@@ -474,15 +474,15 @@ namespace OpenSim.Framework | |||
474 | 474 | ||
475 | if (config.Contains("ExternalHostName")) | 475 | if (config.Contains("ExternalHostName")) |
476 | { | 476 | { |
477 | externalName = config.GetString("ExternalHostName", "localhost"); | 477 | externalName = config.GetString("ExternalHostName", "SYSTEMIP"); |
478 | } | 478 | } |
479 | else | 479 | else |
480 | { | 480 | { |
481 | externalName = MainConsole.Instance.CmdPrompt("External host name", "localhost"); | 481 | externalName = MainConsole.Instance.CmdPrompt("External host name", "SYSTEMIP"); |
482 | config.Set("ExternalHostName", externalName); | 482 | config.Set("ExternalHostName", externalName); |
483 | } | 483 | } |
484 | 484 | ||
485 | if (externalName == "localhost") | 485 | if (externalName == "SYSTEMIP") |
486 | m_externalHostName = Util.GetLocalHost().ToString(); | 486 | m_externalHostName = Util.GetLocalHost().ToString(); |
487 | else | 487 | else |
488 | m_externalHostName = externalName; | 488 | m_externalHostName = externalName; |
@@ -788,7 +788,7 @@ namespace OpenSim.Framework | |||
788 | m_allow_alternate_ports = (bool) configuration_result; | 788 | m_allow_alternate_ports = (bool) configuration_result; |
789 | break; | 789 | break; |
790 | case "external_host_name": | 790 | case "external_host_name": |
791 | if ((string) configuration_result != "localhost") | 791 | if ((string) configuration_result != "SYSTEMIP") |
792 | { | 792 | { |
793 | m_externalHostName = (string) configuration_result; | 793 | m_externalHostName = (string) configuration_result; |
794 | } | 794 | } |