diff --git a/index.js b/index.js index 2d7e6834fb6366b3120c7a37cc5f637bc4a33928..dcfe77fcf3d815edb51dae83d647581275cfc9d5 100644 --- a/index.js +++ b/index.js @@ -1 +1,6 @@ -console.log("欢迎来到 InsCode"); \ No newline at end of file +var geoip = require('geoip-lite'); + +var ip = "115.171.62.134"; +var geo = geoip.lookup(ip); + +console.log(geo); \ No newline at end of file