Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qatar is in the EU #182

Open
rassie opened this issue Apr 12, 2024 · 0 comments
Open

Qatar is in the EU #182

rassie opened this issue Apr 12, 2024 · 0 comments

Comments

@rassie
Copy link

rassie commented Apr 12, 2024

Currently, echoip with a current GeoLite2-Country database considers Qatar to be a member of the EU.

Example IP: 45.83.136.12

Current JSON response from a local instance with fully updated GeoLite2-Country:

{
    "ip": "45.83.136.12",
    "ip_decimal": 760449036,
    "country": "Qatar",
    "country_iso": "QA",
    "country_eu": true,
}

Qatar is not in the EU according to current GeoLite2-Country-CSV database. Verification with the GeoLite2-Country MMDB and Python code

import geoip2.database

with geoip2.database.Reader('/tmp/geoip/GeoLite2-Country.mmdb') as reader:
    response = reader.country('45.83.136.12');
    print(response.country.is_in_european_union)
$ python geoip.py
False

At this point I have to assume an error in echoip code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant