Fix llGetSimulatorHostname to return configured hostname

This commit is contained in:
BlueWall
2012-05-23 15:07:03 -04:00
parent 4d1986c0e4
commit 682d4075e3
3 changed files with 7 additions and 1 deletions

View File

@@ -8743,7 +8743,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public LSL_String llGetSimulatorHostname()
{
m_host.AddScriptLPS(1);
return System.Environment.MachineName;
IUrlModule UrlModule = World.RequestModuleInterface<IUrlModule>();
return UrlModule.ExternalHostNameForLSL;
}
// <summary>