listen only to localhost

This commit is contained in:
2026-01-07 17:29:26 -06:00
parent 0278c8a5e1
commit df2b426c7a

View File

@@ -1168,8 +1168,8 @@ app.post('/update_schedule', authenticateToken, async (req, res) => {
} }
}); });
server.listen(port, () => { server.listen(port, '127.0.0.1', () => {
console.log(`Example app listening at http://localhost:${port}`); console.log(`Example app listening on 127.0.0.1:${port}`);
}); });
app.post('/periph_schedule_list', authenticateToken, async (req, res) => { app.post('/periph_schedule_list', authenticateToken, async (req, res) => {