Fix llGetSimulatorHostname to return configured hostname
parent
4d1986c0e4
commit
682d4075e3
|
@ -84,6 +84,10 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
|
||||||
private IHttpServer m_HttpsServer = null;
|
private IHttpServer m_HttpsServer = null;
|
||||||
|
|
||||||
private string m_ExternalHostNameForLSL = "";
|
private string m_ExternalHostNameForLSL = "";
|
||||||
|
public string ExternalHostNameForLSL
|
||||||
|
{
|
||||||
|
get { return m_ExternalHostNameForLSL; }
|
||||||
|
}
|
||||||
|
|
||||||
public Type ReplaceableInterface
|
public Type ReplaceableInterface
|
||||||
{
|
{
|
||||||
|
|
|
@ -34,6 +34,7 @@ namespace OpenSim.Region.Framework.Interfaces
|
||||||
{
|
{
|
||||||
public interface IUrlModule
|
public interface IUrlModule
|
||||||
{
|
{
|
||||||
|
string ExternalHostNameForLSL { get; }
|
||||||
UUID RequestURL(IScriptModule engine, SceneObjectPart host, UUID itemID);
|
UUID RequestURL(IScriptModule engine, SceneObjectPart host, UUID itemID);
|
||||||
UUID RequestSecureURL(IScriptModule engine, SceneObjectPart host, UUID itemID);
|
UUID RequestSecureURL(IScriptModule engine, SceneObjectPart host, UUID itemID);
|
||||||
void ReleaseURL(string url);
|
void ReleaseURL(string url);
|
||||||
|
|
|
@ -8743,7 +8743,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
public LSL_String llGetSimulatorHostname()
|
public LSL_String llGetSimulatorHostname()
|
||||||
{
|
{
|
||||||
m_host.AddScriptLPS(1);
|
m_host.AddScriptLPS(1);
|
||||||
return System.Environment.MachineName;
|
IUrlModule UrlModule = World.RequestModuleInterface<IUrlModule>();
|
||||||
|
return UrlModule.ExternalHostNameForLSL;
|
||||||
}
|
}
|
||||||
|
|
||||||
// <summary>
|
// <summary>
|
||||||
|
|
Loading…
Reference in New Issue