Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/node/src/geoip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import maxmind, { type Reader } from "maxmind";

const MMDB_URL = "https://github.com/daijro/geoip-all-in-one/releases/latest/download/geoip-aio-all.mmdb.zip";
const MMDB_MAX_AGE_DAYS = 30;
const IPECHO_URLS = ["http://api.ipify.org", "http://ip-api.com/line/?fields=query"];
const IPECHO_URLS = ["http://icanhazip.com", "http://api.ipify.org", "http://ip-api.com/line/?fields=query"];
const IPAPI_URL = "http://ip-api.com/json/?fields=status,message,countryCode,timezone,lat,lon,query";

export interface Geo {
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/clearcote/geoip.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

MMDB_URL = "https://github.com/daijro/geoip-all-in-one/releases/latest/download/geoip-aio-all.mmdb.zip"
MMDB_MAX_AGE_DAYS = 30
IPECHO_URLS = ("http://api.ipify.org", "http://ip-api.com/line/?fields=query")
IPECHO_URLS = ("http://icanhazip.com", "http://api.ipify.org", "http://ip-api.com/line/?fields=query")
IPAPI_URL = "http://ip-api.com/json/?fields=status,message,countryCode,timezone,lat,lon,query"
# dotted record paths for the geoip-all-in-one schema (GeoLite2-City shaped)
_PATHS = {"iso_code": "country.iso_code", "longitude": "location.longitude",
Expand Down