显示客户端IP的详细信息
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
500 B

const fs = require('fs')
module.exports.init = () => {
const map = new Map()
try {
const file = fs.readFileSync(__dirname + '/preformat.db', 'utf8')
const data = file.trim().split('\n').map(x => x.split('|'))
for (const item of data) {
map.set([item[0], item[1]].join('|'), {
country_name: item[2],
region_name: item[3],
city_name: item[4],
owner_domain: item[5],
isp_domain: item[6]
})
}
} catch (ignore) {}
return map
}