Skip to content

Commit fcf2510

Browse files
authored
Merge pull request #1 from korewaChino/main
fix: Listen for healthchecks on all interfaces
2 parents eabfe51 + efd5f79 commit fcf2510

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ if (healthCheckPort) {
4949
res.writeHead(stream.state === "connected" ? 200 : 500);
5050
res.end();
5151
})
52-
.listen(Number.parseInt(healthCheckPort), "127.0.0.1");
52+
.listen(Number.parseInt(healthCheckPort), "0.0.0.0");
5353

5454
console.log(
55-
`Started listening for healthchecks on http://127.0.0.1:${healthCheckPort}`,
55+
`Started listening for healthchecks on http://0.0.0.0:${healthCheckPort}`,
5656
);
5757
}
5858

0 commit comments

Comments
 (0)