mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Admin Server can now bind to a private ip address
Signed-off-by: Melanie <melanie@t-data.com>
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using System.Net;
|
||||
using log4net;
|
||||
using OpenSim.Framework.Servers.HttpServer;
|
||||
|
||||
@@ -47,6 +48,11 @@ namespace OpenSim.Framework
|
||||
}
|
||||
|
||||
public static IHttpServer GetHttpServer(uint port)
|
||||
{
|
||||
return GetHttpServer(port,null);
|
||||
}
|
||||
|
||||
public static IHttpServer GetHttpServer(uint port, IPAddress ipaddr)
|
||||
{
|
||||
if (port == 0)
|
||||
return Instance;
|
||||
@@ -58,6 +64,9 @@ namespace OpenSim.Framework
|
||||
|
||||
m_Servers[port] = new BaseHttpServer(port);
|
||||
|
||||
if (ipaddr != null )
|
||||
m_Servers[port].ListenIPAddress = ipaddr;
|
||||
|
||||
m_log.InfoFormat("[MAIN HTTP SERVER]: Starting main http server on port {0}", port);
|
||||
m_Servers[port].Start();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user