Skip to content

Commit

Permalink
Revert to listening on broadcast address again
Browse files Browse the repository at this point in the history
Listening on 127.0.0.1 might not work well with use inside of docker container
(with exposed port).
  • Loading branch information
rchl committed Jul 12, 2018
1 parent d82f681 commit 19adc41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,8 @@ app.put(
)

const port = process.env.PORT || 8001
const server = app.listen(port, '127.0.0.1');
const server = app.listen(port);
server.on('listening', () => {
const address = server.address();
console.log(` listening on http://${address.address}:${address.port}`);
})
console.log(` listening on http://0.0.0.0:${address.port}`);
});

0 comments on commit 19adc41

Please sign in to comment.