ip-service.js 271 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'); async function getIsp(ip) { if (!ip) { return {}; } const result = await ipApi.getIsp(ip); if (result.country === '内网IP') { return {}; } return result; } module.exports = { getIsp };