online users fix

This commit is contained in:
NoobishSVK
2024-01-28 22:15:22 +01:00
parent 857615acfc
commit 61f7a4d01e
+1
View File
@@ -42,6 +42,7 @@ commandExists('ffmpeg')
wss.on('connection', (ws, request) => {
const clientIp = request.connection.remoteAddress;
currentUsers++;
dataHandler.showOnlineUsers(currentUsers);
// Use ipinfo.io API to get geolocation information
https.get(`https://ipinfo.io/${clientIp}/json`, (response) => {