- Chart Maps Nationality
- Username lowercase - Statistics - Telegram
This commit is contained in:
@@ -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 ''
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user