mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
minor changes
This commit is contained in:
parent
788eaec75f
commit
7485ccb59e
1 changed files with 5 additions and 5 deletions
|
|
@ -88,12 +88,12 @@
|
|||
lHTTPServer = function(){
|
||||
Server = http.createServer( controller );
|
||||
Server.listen(lPort, lIP);
|
||||
lServerLog('http');
|
||||
lServerLog('http', lPort);
|
||||
lSockets(Server);
|
||||
},
|
||||
|
||||
lServerLog = function(pHTTP){
|
||||
Util.log('* Server running at ' + pHTTP + '://' + lIP + ':' + lPort);
|
||||
lServerLog = function(pHTTP, pPort){
|
||||
Util.log('* Server running at ' + pHTTP + '://' + lIP + ':' + pPort);
|
||||
};
|
||||
/* server mode or testing mode */
|
||||
if (lConfig.server) {
|
||||
|
|
@ -109,7 +109,7 @@
|
|||
|
||||
Server = https.createServer( lSSL, controller );
|
||||
Server.on('error', function (pError) {
|
||||
Util.log('Could not you https port: ' + lSSLPort);
|
||||
Util.log('Could not use https port: ' + lSSLPort);
|
||||
Util.log(pError);
|
||||
lRedirectServer.close();
|
||||
|
||||
|
|
@ -119,7 +119,7 @@
|
|||
lSockets();
|
||||
|
||||
Server.listen(lSSLPort, lIP);
|
||||
lServerLog('https');
|
||||
lServerLog('https', lSSLPort);
|
||||
}
|
||||
else
|
||||
lHTTPServer();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue