added the ability to listen at a specific ip

This commit is contained in:
Peter 'Pita' Martischka 2011-07-30 16:39:53 +01:00
parent a47b5ab458
commit 5306a88214
3 changed files with 9 additions and 2 deletions

View file

@ -254,8 +254,8 @@ async.waterfall([
});
//let the server listen
app.listen(settings.port);
console.log("Server is listening at port " + settings.port);
app.listen(settings.port, settings.ip);
console.log("Server is listening at " + settings.ip + ":" + settings.port);
//init socket.io and redirect all requests to the MessageHandler
var io = socketio.listen(app);