minor changes

This commit is contained in:
coderaiser 2013-03-10 07:29:40 -04:00
parent 64a405743f
commit a40c19bc8c

View file

@ -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();
});