mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
Unit test breakage fix.
This commit is contained in:
@@ -142,7 +142,7 @@ namespace OpenSim.Framework.Capabilities
|
||||
|
||||
m_httpListenPort = httpPort;
|
||||
|
||||
if (httpServer.UseSSL)
|
||||
if (httpServer != null && httpServer.UseSSL)
|
||||
{
|
||||
m_httpListenPort = httpServer.SSLPort;
|
||||
httpListen = httpServer.SSLCommonName;
|
||||
@@ -151,7 +151,7 @@ namespace OpenSim.Framework.Capabilities
|
||||
|
||||
m_agentID = agent;
|
||||
m_dumpAssetsToFile = dumpAssetsToFile;
|
||||
m_capsHandlers = new CapsHandlers(httpServer, httpListen, httpPort, httpServer.UseSSL);
|
||||
m_capsHandlers = new CapsHandlers(httpServer, httpListen, httpPort, (httpServer == null) ? false : httpServer.UseSSL);
|
||||
m_regionName = regionName;
|
||||
}
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace OpenSim.Framework.Capabilities
|
||||
m_httpListenerHostName = httpListenerHostname;
|
||||
m_httpListenerPort = httpListenerPort;
|
||||
m_useSSL = https;
|
||||
if (m_useSSL)
|
||||
if (httpListener != null && m_useSSL)
|
||||
{
|
||||
m_httpListenerHostName = httpListener.SSLCommonName;
|
||||
m_httpListenerPort = httpListener.SSLPort;
|
||||
|
||||
Reference in New Issue
Block a user