mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
fixed #1222
This commit is contained in:
@@ -108,9 +108,17 @@ if(nconf.get('ssl')) {
|
||||
});
|
||||
|
||||
emitter.on('templates:compiled', function() {
|
||||
winston.info('NodeBB attempting to listen on: ' + ((nconf.get('bind_address') === "0.0.0.0" || !nconf.get('bind_address')) ? '0.0.0.0' : nconf.get('bind_address')) + ':' + port);
|
||||
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(){
|
||||
winston.info('NodeBB Ready');
|
||||
if (process.send) {
|
||||
process.send({
|
||||
action: 'ready',
|
||||
bind_address: bind_address
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user