1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-26 22:13:53 +01:00

online users fix

This commit is contained in:
NoobishSVK
2024-01-28 22:15:22 +01:00
parent 857615acfc
commit 61f7a4d01e

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) => {