explicitly listen to all IPv4 interfaces

This commit is contained in:
Manish 2025-06-19 20:26:31 +10:00
parent 54dfc47083
commit 38dbf84775

View File

@ -148,6 +148,6 @@ app.get("/api/shorturl/:shorturl", (req, res) => {
);
});
app.listen(port, function () {
console.log(`Listening on port ${port}`);
app.listen(port, "0.0.0.0", function () {
console.log(`Listening on interface "0.0.0.0" and port ${port}`);
});