mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-24 01:10:31 +01:00
no need to inform attempt to listen to address
This commit is contained in:
@@ -124,10 +124,10 @@ if(nconf.get('ssl')) {
|
||||
|
||||
module.exports.listen = function(callback) {
|
||||
var bind_address = ((nconf.get('bind_address') === "0.0.0.0" || !nconf.get('bind_address')) ? '0.0.0.0' : nconf.get('bind_address')) + ':' + port;
|
||||
winston.info('NodeBB attempting to listen on: ' + bind_address);
|
||||
|
||||
|
||||
server.listen(port, nconf.get('bind_address'), function(err) {
|
||||
if (err) {
|
||||
winston.info('NodeBB was unable to listen on: ' + bind_address);
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user