diff --git a/lib/server.js b/lib/server.js index bb4f63b0..28bed887 100644 --- a/lib/server.js +++ b/lib/server.js @@ -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();