Merge pull request #217 from monsterpit-daggertooth/fix-streaming-host-env

Allow streaming server to take bindhost from HOST env
main
David Yip 2017-11-15 23:40:07 -06:00 committed by GitHub
commit 88627fd7aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -467,7 +467,7 @@ const startWorker = (workerId) => {
});
}, 30000);
server.listen(process.env.PORT || 4000, () => {
server.listen(process.env.PORT || 4000, process.env.HOST || '127.0.0.1', () => {
log.info(`Worker ${workerId} now listening on ${server.address().address}:${server.address().port}`);
});