From: Baptiste Gelez Date: Sat, 18 Nov 2017 03:44:19 +0000 (+0100) Subject: Make it possible to bind streming service to 0.0.0.0 (#5744) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=2864e5e07791577d4aacbe1ea2b8115ac79ce360;p=mastodon.git Make it possible to bind streming service to 0.0.0.0 (#5744) --- 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}`); });