mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
Bind to configurable ip
This commit is contained in:
parent
de70ac4172
commit
2cefd918ef
@ -26,7 +26,6 @@
|
||||
"test": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
|
||||
},
|
||||
"dependencies": {
|
||||
"canvas": "1.1.6",
|
||||
"forever": "^0.13.0",
|
||||
"jade": "~1.9.1",
|
||||
"lwip": "0.0.6",
|
||||
|
||||
@ -87,7 +87,9 @@ function requestHandler(req, res) {
|
||||
}
|
||||
|
||||
var boot = module.exports = function () {
|
||||
http.createServer(requestHandler).listen(process.env.PORT || 3000);
|
||||
var port = process.env.PORT || 3000;
|
||||
var bind_ip = process.env.BIND || '127.0.0.1';
|
||||
http.createServer(requestHandler).listen(port, bind_ip);
|
||||
};
|
||||
|
||||
if (require.main === module) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user