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