about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2017-11-15 23:40:07 -0600
committerGitHub <noreply@github.com>2017-11-15 23:40:07 -0600
commit88627fd7aa2493a6890d60a5965459e4c7fe6fe9 (patch)
tree81e6de0d072e6531cf8365f7197aa61881a4c24b
parent04508868b07f5631eddda3e4d8240dde9b751fd4 (diff)
parent7e17e764a5d64847b811260c60c1c3e385bf4057 (diff)
Merge pull request #217 from monsterpit-daggertooth/fix-streaming-host-env
Allow streaming server to take bindhost from HOST env
-rw-r--r--streaming/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/streaming/index.js b/streaming/index.js
index 8adc5174a..f0492784a 100644
--- a/streaming/index.js
+++ b/streaming/index.js
@@ -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}`);
   });