mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-29 16:29:19 +02:00
kick fix
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user