Allow streaming server to take bindhost from HOST env

This commit is contained in:
Daggertooth 2017-11-14 08:32:24 +00:00
parent ed1cf698a2
commit 3bcaa27a99

View file

@ -467,7 +467,7 @@ const startWorker = (workerId) => {
}); });
}, 30000); }, 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}`); log.info(`Worker ${workerId} now listening on ${server.address().address}:${server.address().port}`);
}); });