Comments (8)
hello @bluesmoon,
do you have any news on this, please?
Currently, several users connecting, for example, via VPN or over the Tor network are geolocated in the Islamic Republic of Iran, which, besides being incorrect, raises a number of issues for financial service providers being that country a prohibited jurisdiction.
May I know if you are interested in fixing this issue, please? (using proposal #255 or any other solution)
Thanks,
davide
from node-geoip.
I think the problem is far simpler.
For a non-existent location, the parseInt
returns NaN
, and when we lookup cityLookup
, it returns undefined
. When we do undefined >>> 0
, we get 0
. The fix is simply to initialize cityLookup = {NaN: -1}
which will get us a value of INT32_MAX.
I'll make an MR for it.
from node-geoip.
hello @bluesmoon,
first of all, thank you for acknowledging this issue, much appreciated.
Personally, I don't think that exploiting an overflow to UINT32_MAX
and having NaN
as an object key is preferable to starting the line count from 1 but, in any case, thank you very much for fixing it.
Could you please release the new version (1.4.8) so that it can also be installed from the registry?
Thanks,
davide
from node-geoip.
Unfortunately npm publish is not working at the moment due to a 404 on the authentication page.
from node-geoip.
hello @bluesmoon,
thank you for the quick response; is npm publish
still broken for you?
Thanks,
davide
from node-geoip.
Yes. npm just throws a 404 when trying to authenticate.
from node-geoip.
ok, got it published.
from node-geoip.
thank you, @bluesmoon, much appreciated 🖖
from node-geoip.
Related Issues (20)
- Re: Database updates HOT 16
- Custom directory in updatedb doesn't work. HOT 6
- Sometimes geoip return null value HOT 3
- returns wrong country for 72.18.74.123 HOT 1
- Update database HOT 1
- 401 Unauthorized when trying to upgrade HOT 8
- Upgrade is extremely slow. HOT 4
- Get the postal / zip code ? HOT 2
- The included data is out of date HOT 2
- remove fs dependency HOT 3
- IP from US but the returned result is from Africa HOT 3
- IPv6 not working HOT 4
- Error in getting the Info HOT 2
- Seeking insight into the development process and buffer lookup approach used. HOT 2
- updatedb.js: ERROR: HTTP Request Failed [302 Found]
- Cannot use geoip-lite in next js application HOT 3
- Custom data directory not working HOT 4
- [Request] What to do if we don't need the 'city' database ? HOT 2
- Vulnerability in `geoip-lite` due to `inflight` Module (CWE-772) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-geoip.