locus

MMDB reader for geolocation and ASN lookup of IP addresses

MIT License

Downloads
287.9K
Stars
109
Committers
7
locus - Fixed IPv4 compatibility with IPinfo databases Latest Release

Published by g-andrade 6 months ago

Fixed wrong root in MMDB tree parser, which caused failed IPv4 lookups in IPv6 databases that don't include IPv4-mapped IPv6 addresses (wrong since 1.0.0, closes #44.)

locus - 2.3.6

Published by g-andrade about 2 years ago

Fixed

  • failed load of .tgz database when its mime type is listed as "application/x-tar"
locus - 2.3.5

Published by g-andrade about 2 years ago

Fixed

  • broken CLI check when loading database from a HTTP(S) URL
locus - 2.3.4

Published by g-andrade about 2 years ago

Fixed

  • broken compilation under Elixir's Mix (introduced in 2.3.3)
locus - 2.3.3 (bad release)

Published by g-andrade about 2 years ago

locus - 2.3.2

Published by g-andrade about 2 years ago

Added

  • OTP 25 to CI

Fixed

  • a few wrong specs
  • rebar3_lint warnings on OTP 25
  • rebar3_hank warnings on OTP 25
  • Dialyzer warnings on OTP 25
  • a few eqWAlizer warnings
locus - 2.3.1

Published by g-andrade over 2 years ago

Fixed

  • spelling mistakes in CHANGELOG [Kian-Meng Ang]
locus - 2.3.0

Published by g-andrade over 2 years ago

Added

  • the ability to customize database cache path [Bartosz Szafran]
locus - 2.2.2

Published by g-andrade almost 3 years ago

Fixed

  • wrong reference to custom database fetcher in README [Bartosz Szafran]
locus - 2.2.1

Published by g-andrade about 3 years ago

Fixed

  • decoding of negative integers [made wrong in 2.0.0]
locus - 2.2.0

Published by g-andrade about 3 years ago

Changed

  • documentation from edoc to ExDoc
  • imported version of tls_certificate_check to '~> 1.9'
locus - 2.1.0

Published by g-andrade about 3 years ago

Added

  • locus_mmdb:unpack_tree_data_and_data_section/2 to the API
  • locus_mmdb_data_codec:parse_on_index/3 to the API
  • CI on Windows

Removed

  • no longer warranted run time dependency (public_key)

Fixed

  • wrong return of errors during :check/1 for maps containing maps or arrays which had been checked previously
  • wrong paths in :check/1 errors or warnings concerning maps
  • no longer warranted type definition
locus - 2.0.0

Published by g-andrade about 3 years ago

Added

  • support for retrieving databases using consumer-defined `locus_custom_fetcher's
  • support for decoding IEEE-754 infinities in MMDB data
  • locus:check/1 to API (which replaces locus:analyze/1 and can be up to 3200% faster 🏎️)
  • details to MMDB unpacking errors
  • linting checks with rebar3_lint
  • dead code checks with rebar3_hank

Changed

  • ⚠️ return type of locus:lookup/2 (see MIGRATION.md)
  • database loader to use persistent_term instead of ETS
  • MMDB decoder to perform stricter metadata validations
  • MMDB decoder to not crash upon maps containing duplicate keys
  • databases downloaded through HTTP(S) without a last-modified response header to no longer be cached
  • imported version of tls_certificate_check to '~> 1.7'
  • single CT suite covering both filesystem and HTTP sources into one for each
  • test coverage for the better

Removed

  • ⚠️ locus:wait_for_loader/1 from API (deprecated in 1.10.0 - see MIGRATION.md)
  • ⚠️ locus:wait_for_loader/2 from API (deprecated in 1.10.0 - see MIGRATION.md)
  • ⚠️ locus:wait_for_loaders/2 from API (deprecated in 1.10.0 - see MIGRATION.md)
  • ⚠️ locus:get_version/1 from API (deprecated in 1.4.0 - see MIGRATION.md)
  • ⚠️ locus:analyze/1 from API (locus:check/1 now fullfils this role - see MIGRATION.md)
  • deprecated loader options pre_readiness_update_period and post_readiness_update_period (see MIGRATION.md)
  • warnings on the use of discontinued GeoLite2 HTTP URLs
locus - 1.16.1

Published by g-andrade over 3 years ago

Fix erroneous decoding of signed integers shorter than their maximum length.

Following clarification in spec:

(This bug had likely been present since the beginning.)

locus - 1.16.0

Published by g-andrade over 3 years ago

locus - 1.15.0

Published by g-andrade over 3 years ago

locus - 1.14.1

Published by g-andrade over 3 years ago

locus - 1.14.0

Published by g-andrade over 3 years ago