From cafca3a4d136e6ab4c3d42699200dd16aa571f7d Mon Sep 17 00:00:00 2001 From: Antigravity Date: Sat, 13 Jun 2026 23:34:22 -0400 Subject: [PATCH] Fix Node 18 container network bindings by listening explicitly on 0.0.0.0 --- gmail-agent/index.js | 4 ++-- whatsapp-gateway/server.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gmail-agent/index.js b/gmail-agent/index.js index 0c2c1cd..6bfcc21 100644 --- a/gmail-agent/index.js +++ b/gmail-agent/index.js @@ -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 diff --git a/whatsapp-gateway/server.js b/whatsapp-gateway/server.js index ced00c1..815eb93 100644 --- a/whatsapp-gateway/server.js +++ b/whatsapp-gateway/server.js @@ -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...');