- Chart Maps Nationality

- Username lowercase
- Statistics
- Telegram
This commit is contained in:
Paolo Arena
2020-01-27 15:07:53 +01:00
parent f5355c3a54
commit 25ad3e91c2
11 changed files with 262 additions and 76 deletions

View File

@@ -833,4 +833,18 @@ module.exports = {
return namesurname
},
getiPAddressUser (req) {
try {
const striniziale = '::ffff:';
if (req.ip.indexOf(striniziale) >= 0){
return req.ip.substring(striniziale.length)
} else {
return req.ip; // Express
}
} catch (e) {
return ''
}
}
};