You've already forked fm-dx-webserver
mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-02-27 06:23:53 +01:00
country fix
This commit is contained in:
1
index.js
1
index.js
@@ -55,7 +55,6 @@ wss.on('connection', (ws, request) => {
|
||||
response.on('end', () => {
|
||||
try {
|
||||
const locationInfo = JSON.parse(data);
|
||||
console.log(locationInfo.country);
|
||||
if(locationInfo.country === undefined) {
|
||||
logInfo(`Web client \x1b[32mconnected\x1b[0m (${clientIp}) \x1b[90m[${currentUsers}]\x1b[0m`);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user