Fix Node 18 container network bindings by listening explicitly on 0.0.0.0

This commit is contained in:
Antigravity 2026-06-13 23:34:22 -04:00
parent 768217dc85
commit cafca3a4d1
2 changed files with 4 additions and 4 deletions

View File

@ -258,8 +258,8 @@ app.post('/api/auth/token', (req, res) => {
});
const PORT = process.env.PORT || 5002;
app.listen(PORT, () => {
console.log(`Express server listening on port ${PORT}`);
app.listen(PORT, '0.0.0.0', () => {
console.log(`Express server listening on 0.0.0.0:${PORT}`);
});
// Start Application

View File

@ -215,8 +215,8 @@ app.post('/api/groups/create', async (req, res) => {
}
});
server.listen(PORT, () => {
console.log(`[WhatsApp Gateway] Server running at http://localhost:${PORT}`);
server.listen(PORT, '0.0.0.0', () => {
console.log(`[WhatsApp Gateway] Server running at http://0.0.0.0:${PORT}`);
});
console.log('[WhatsApp Bot] Initializing client...');