Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adding config.address to set the listen addr

  • Loading branch information...
commit 9a9d038d83d8085ba963ef852255127896e1e119 1 parent 196af5b
@precision precision authored
Showing with 2 additions and 1 deletion.
  1. +1 −1  app.js
  2. +1 −0  config.json.sample
View
2  app.js
@@ -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  config.json.sample
@@ -1,5 +1,6 @@
{
"title" : "I/O Docs - http://github.com/mashery/iodocs",
+ "address": "0.0.0.0",
"port" : 3000,
"debug" : false,
"sessionSecret" : "12345",
Please sign in to comment.
Something went wrong with that request. Please try again.