Update Objc Rules

This commit is contained in:
Garen Torikian 2012-11-09 18:02:13 -05:00 • committed by nightwing
commit 8b1404bd4e
4 changed files with 55 additions and 54 deletions

View file

@ -5,7 +5,8 @@ var http = require("http")
, mime = require("mime")
, url = require("url")
, fs = require("fs")
, port = process.env.PORT || 8888;
, port = process.env.PORT || 8888
, ip = process.env.IP || "0.0.0.0";
// compatibility with node 0.6
if (!fs.exists)
@ -40,6 +41,6 @@ http.createServer(function(request, response) {
response.end();
});
});
}).listen(port, "0.0.0.0");
}).listen(port, ip);
console.log("http://localhost:" + port);