From df2b426c7a5a81756240ac1a086324b22c0b8412 Mon Sep 17 00:00:00 2001 From: pulipakaa24 Date: Wed, 7 Jan 2026 17:29:26 -0600 Subject: [PATCH] listen only to localhost --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 8cc2424..d15ac0b 100644 --- a/index.js +++ b/index.js @@ -1168,8 +1168,8 @@ app.post('/update_schedule', authenticateToken, async (req, res) => { } }); -server.listen(port, () => { - console.log(`Example app listening at http://localhost:${port}`); +server.listen(port, '127.0.0.1', () => { + console.log(`Example app listening on 127.0.0.1:${port}`); }); app.post('/periph_schedule_list', authenticateToken, async (req, res) => {