mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
minor changes
This commit is contained in:
parent
64a405743f
commit
a40c19bc8c
1 changed files with 3 additions and 1 deletions
|
|
@ -101,6 +101,8 @@
|
|||
/* server mode or testing mode */
|
||||
if (lConfig.server) {
|
||||
if(lSSL){
|
||||
Util.log('* Redirection http -> https is setted up');
|
||||
lServerLog('http', lPort);
|
||||
var lRedirectServer = http.createServer( function(pReq, pRes){
|
||||
var lHost = pReq.headers.host;
|
||||
|
||||
|
|
@ -117,7 +119,7 @@
|
|||
Util.log('Could not use https port: ' + lSSLPort);
|
||||
Util.log(pError);
|
||||
lRedirectServer.close();
|
||||
|
||||
Util.log('* Redirection http -> https removed');
|
||||
lHTTPServer();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue