Skip to content

Commit dddfa61

Browse files
authored
Merge pull request BIDMCDigitalPsychiatry#14 from bracketsoftware/fix-to-ipv4-interface
fix(server): listen specifically for IPv4 connections
2 parents 5c7be60 + 65911ec commit dddfa61

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ async function main() {
340340
//=============================================================================
341341

342342
console.log("LAMP - App Gateway");
343-
const server = app.listen(PORT, () => {
343+
const server = app.listen(PORT, "0.0.0.0", () => {
344344
const { address, port } = server.address();
345345
console.log(`Listening on ${address}:${port}`);
346346
});
@@ -373,4 +373,4 @@ async function shutdown(signal) {
373373
}
374374

375375
process.on("SIGINT", shutdown);
376-
process.on("SIGTERM", shutdown);
376+
process.on("SIGTERM", shutdown);

0 commit comments

Comments
 (0)