mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-31 09:19:16 +02:00
online users fix
This commit is contained in:
@@ -42,6 +42,7 @@ commandExists('ffmpeg')
|
|||||||
wss.on('connection', (ws, request) => {
|
wss.on('connection', (ws, request) => {
|
||||||
const clientIp = request.connection.remoteAddress;
|
const clientIp = request.connection.remoteAddress;
|
||||||
currentUsers++;
|
currentUsers++;
|
||||||
|
dataHandler.showOnlineUsers(currentUsers);
|
||||||
|
|
||||||
// Use ipinfo.io API to get geolocation information
|
// Use ipinfo.io API to get geolocation information
|
||||||
https.get(`https://ipinfo.io/${clientIp}/json`, (response) => {
|
https.get(`https://ipinfo.io/${clientIp}/json`, (response) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user