ip-service.js 259 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 const ipApi = require('./ip-api'); function getIsp(ip) { if (!ip) { return {}; } const result = ipApi.getIsp(ip); if (result.country === '内网IP') { return {}; } return result; } module.exports = { getIsp };