aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application/RegionApplicationBase.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Application/RegionApplicationBase.cs')
-rw-r--r--OpenSim/Region/Application/RegionApplicationBase.cs26
1 files changed, 19 insertions, 7 deletions
diff --git a/OpenSim/Region/Application/RegionApplicationBase.cs b/OpenSim/Region/Application/RegionApplicationBase.cs
index 08c8579..ba92fd6 100644
--- a/OpenSim/Region/Application/RegionApplicationBase.cs
+++ b/OpenSim/Region/Application/RegionApplicationBase.cs
@@ -87,17 +87,29 @@ namespace OpenSim
87 // "OOB" Server 87 // "OOB" Server
88 if (m_networkServersInfo.ssl_listener) 88 if (m_networkServersInfo.ssl_listener)
89 { 89 {
90 BaseHttpServer server = new BaseHttpServer( 90 if (!m_networkServersInfo.ssl_external)
91 m_networkServersInfo.https_port, m_networkServersInfo.ssl_listener, m_networkServersInfo.cert_path, 91 {
92 m_networkServersInfo.cert_pass); 92 BaseHttpServer server = new BaseHttpServer(
93 m_networkServersInfo.https_port, m_networkServersInfo.ssl_listener, m_networkServersInfo.cert_path,
94 m_networkServersInfo.cert_pass);
93 95
94 m_log.InfoFormat("[REGION SERVER]: Starting HTTPS server on port {0}", server.Port); 96 m_log.InfoFormat("[REGION SERVER]: Starting HTTPS server on port {0}", server.Port);
95 MainServer.AddHttpServer(server); 97 MainServer.AddHttpServer(server);
96 server.Start(); 98 server.Start();
99 }
100 else
101 {
102 BaseHttpServer server = new BaseHttpServer(
103 m_networkServersInfo.https_port);
104
105 m_log.InfoFormat("[REGION SERVER]: Starting HTTP server on port {0} for external HTTPS", server.Port);
106 MainServer.AddHttpServer(server);
107 server.Start();
108 }
97 } 109 }
98 110
99 base.StartupSpecific(); 111 base.StartupSpecific();
100 } 112 }
101 113
102 } 114 }
103} \ No newline at end of file 115}