Giter VIP home page Giter VIP logo

Comments (8)

maddybo avatar maddybo commented on June 16, 2024 1

Any news? IP v6 still dont work properly

from fast-geoip.

corollari avatar corollari commented on June 16, 2024

It's really appreciated how well-designed it is clap

Thanks!

I created a module called request-country that essentially uses fast-geoip for getting the country.

🥳, let me know if there's anything on my end that I could do to make your life easier,

Correct me if I'm wrong but probably that is not possible since MaxMind's GeoLite database is just for IPv4?

MaxMind also provides an IPv6 database so it is definitely possible to integrate IPv6 addresses into the package. With that being said, I'd probably make this into a new package in order to keep the size of the current package low enough so that it fits into the lowest-memory lambda.

from fast-geoip.

Kikobeats avatar Kikobeats commented on June 16, 2024

that makes sense; then it can be combined with is-ip in order to determine what fast-geoip should be used!

from fast-geoip.

jlarmstrongiv avatar jlarmstrongiv commented on June 16, 2024

Any updates on IPv6 support? 😄 I’d love to use fast-geoip for my serverless use case, but only node-geoip supports both IPv4 and IPv6. Enjoyed reading the optimization strategies—very cool.

from fast-geoip.

sanchezzzhak avatar sanchezzzhak commented on June 16, 2024

that makes sense; then it can be combined with is-ip in order to determine what fast-geoip should be used!

if we need to find out the ip version, we can do it without dependencies.

const Net = require('net');
let version = Net.isIP(ipAdress); // return 4 or 6

from fast-geoip.

Doc999tor avatar Doc999tor commented on June 16, 2024

Any news about v6?

> geoip.lookup('141.226.15.196').then(r => console.log(r))
> {
  country: 'IL',
  timezone: 'Asia/Jerusalem',
  city: 'Tel Aviv',
}
> geoip.lookup('2a02:ed0:52be:e900:442d:a98c:84a5:6d31').then(r => console.log(r)) -- the same ip in v6
> {
  country: 'FR', 😂
  timezone: 'Europe/Paris',
  city: 'Mamers',
}

from fast-geoip.

emjoseph avatar emjoseph commented on June 16, 2024

IPv6 support would be incredible :)

from fast-geoip.

maddybo avatar maddybo commented on June 16, 2024

We still waiting :D

from fast-geoip.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.