about summary refs log tree commit diff
path: root/streaming
diff options
context:
space:
mode:
authorBaptiste Gelez <baptiste@gelez.xyz>2017-11-18 04:44:19 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-11-18 04:44:19 +0100
commit2864e5e07791577d4aacbe1ea2b8115ac79ce360 (patch)
treebca2a04039c9b2aedb970318665c298ca29ba3a7 /streaming
parent24cafd73a2b644025e9aeaadf4fed46dd3ecea4d (diff)
Make it possible to bind streming service to 0.0.0.0 (#5744)
Diffstat (limited to 'streaming')
-rw-r--r--streaming/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/streaming/index.js b/streaming/index.js
index f0b8ce007..c79a58671 100644
--- a/streaming/index.js
+++ b/streaming/index.js
@@ -508,7 +508,7 @@ const startWorker = (workerId) => {
     });
   }, 30000);
 
-  server.listen(process.env.PORT || 4000, () => {
+  server.listen(process.env.PORT || 4000, process.env.BIND || '0.0.0.0', () => {
     log.info(`Worker ${workerId} now listening on ${server.address().address}:${server.address().port}`);
   });