Make XMLRPCModule use an existing HTTP server if one already exists on the desired port.
parent
6993a26ba5
commit
10e87f9cdc
|
@ -131,11 +131,12 @@ namespace OpenSim.Region.CoreModules.Scripting.XMLRPC
|
||||||
{
|
{
|
||||||
// Start http server
|
// Start http server
|
||||||
// Attach xmlrpc handlers
|
// Attach xmlrpc handlers
|
||||||
m_log.Info("[XML RPC MODULE]: " +
|
// m_log.InfoFormat(
|
||||||
"Starting up XMLRPC Server on port " + m_remoteDataPort + " for llRemoteData commands.");
|
// "[XML RPC MODULE]: Starting up XMLRPC Server on port {0} for llRemoteData commands.",
|
||||||
BaseHttpServer httpServer = new BaseHttpServer((uint) m_remoteDataPort);
|
// m_remoteDataPort);
|
||||||
|
|
||||||
|
IHttpServer httpServer = MainServer.GetHttpServer((uint)m_remoteDataPort);
|
||||||
httpServer.AddXmlRPCHandler("llRemoteData", XmlRpcRemoteData);
|
httpServer.AddXmlRPCHandler("llRemoteData", XmlRpcRemoteData);
|
||||||
httpServer.Start();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue