This commit is contained in:
NoobishSVK
2024-05-20 21:48:32 +02:00
parent 2314ba5d2a
commit 8b2f489fbe
-1
View File
@@ -160,7 +160,6 @@ router.get('/logout', (req, res) => {
router.get('/kick', (req, res) => { router.get('/kick', (req, res) => {
const ipAddress = req.query.ip; // Extract the IP address parameter from the query string const ipAddress = req.query.ip; // Extract the IP address parameter from the query string
// Terminate the WebSocket connection for the specified IP address // Terminate the WebSocket connection for the specified IP address
console.log(ipAddress);
if(req.session.isAdminAuthenticated) { if(req.session.isAdminAuthenticated) {
helpers.kickClient(ipAddress); helpers.kickClient(ipAddress);
} }