Permalink
Browse files

adding config.address to set the listen addr

  • Loading branch information...
1 parent 196af5b commit 9a9d038d83d8085ba963ef852255127896e1e119 @precision precision committed Aug 3, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −1 app.js
  2. +1 −0 config.json.sample
View
@@ -627,6 +627,6 @@ app.get('/:api([^\.]+)', function(req, res) {
// Only listen on $ node app.js
if (!module.parent) {
- app.listen(config.port, '127.0.0.1');
+ app.listen(config.port, config.address);
console.log("Express server listening on port %d", app.address().port);
}
View
@@ -1,5 +1,6 @@
{
"title" : "I/O Docs - http://github.com/mashery/iodocs",
+ "address": "0.0.0.0",
"port" : 3000,
"debug" : false,
"sessionSecret" : "12345",

0 comments on commit 9a9d038

Please sign in to comment.