Releases: maxmind/geoipupdate
Releases · maxmind/geoipupdate
7.1.0
- Allow the
Host
configuration directive and theGEOIPUPDATE_HOST
environment variable to accept a value with the scheme set. If not set, it
will continue to default tohttps://
. Pull request by Gabe Cook. GitHub
#310. - Export
HTTPError
to enable fine-grained error handling for users of
github.com/maxmind/geoipupdate/client
. Pull request by Ryan Davis. GitHub
#341.
7.0.1
7.0.0
- BREAKING CHANGE: Improvements to the HTTP download API.
The client now calls two new endpoints:/geoip/updates/metadata
which is responsible for getting information about
a database edition./geoip/databases/{edition-id}/download
which is responsible for downloading
the content of a database edition. This new endpoint redirects downloads to R2
presigned URLs, so systems runninggeoipupdate
need to be able to
reach
mm-prod-geoip-databases.a2649acb697e2c09b632799562c076f2.r2.cloudflarestorage.com
in addition toupdates.maxmind.com
.
- BREAKING CHANGE: The public package API has been redesigned. The previous
API was not easy to use and had become a maintenance burden. We now
expose aClient
atgithub.com/maxmind/geoipupdate/client
with a
Download()
method. The intention is to expose less of thegeoipupdate
internals and provide a simpler and easier to use package. Many
previously exposed methods and types are now either internal only or have
been removed. - BREAKING CHANGE: If set,
GEOIPUPDATE_VERBOSE
must either be0
or1
.
All other values will return an error. - Setting
GEOIPUPDATE_VERBOSE
to1
now works as expected. In the 6.0.0 and
6.1.0 releases, the flag was ignored. Reported by pmcevoy. GitHub #298. geoipupdate
now supports retrying on more types of errors
such as HTTP2 INTERNAL_ERROR.- Now
geoipupdate
doesn't requires the user to specify the config file
even if all the other arguments are set via the environment variables.
Reported by jsf84ksnf. GitHub #284.
6.1.0
geoipupdate
now sets the version in theUser-Agent
header to the
version in the binary. While there were no issues with the version in the
header, this makes sure it will match the binary. The header also now
includes build information, such as OS and architecture.- White spaces in secret files
GEOIPUPDATE_ACCOUNT_ID_FILE
,
GEOIPUPDATE_LICENSE_KEY_FILE
are ignored, see #262 issue.
6.0.0
-
geoipupdate
now supports configuration via environment variables. Any
configuration set this way will override any value from the config file,
but still be overridden by any associated command line option (if any).
The following new environment variables are supported:GEOIPUPDATE_ACCOUNT_ID
GEOIPUPDATE_ACCOUNT_ID_FILE
GEOIPUPDATE_CONF_FILE
GEOIPUPDATE_DB_DIR
GEOIPUPDATE_EDITION_IDS
GEOIPUPDATE_HOST
GEOIPUPDATE_LICENSE_KEY
GEOIPUPDATE_LICENSE_KEY_FILE
GEOIPUPDATE_LOCK_FILE
GEOIPUPDATE_PARALLELISM
GEOIPUPDATE_PRESERVE_FILE_TIMES
GEOIPUPDATE_PROXY
GEOIPUPDATE_PROXY_USER_PASSWORD
GEOIPUPDATE_RETRY_FOR
GEOIPUPDATE_VERBOSE
-
Changed the signature of
NewConfig
inpkg/geoipupdate
to no longer accept
a positional config file path argument, which can now be passed in using the
option fromWithConfigFile
along with the other optional parameters. -
geoipupdate
andNewConfig
no longer require a config file to exist. -
The
--stack-trace
flag has been removed. This flag has been broken since
4.11.0.
5.1.1
5.1.0
- Fixed the Docker health-check script to use the correct time of
the last update attempt. Reported by cford1080. GitHub #225. - Added new
--output
flag to print JSON to standard output describing
the result of the run. - Compilation with Go versions before 1.19 is no longer supported.
- When using the provided Docker images,
geoipupdate
no longer runs
as root in the container. Based on pull request by Andreas
Grünenfelder. GitHub #200.
5.0.4
5.0.3
- On 5.0.0 through 5.0.2, the default database directory was not being
correctly set for Debian and RPM package builds. The directory
/usr/local/share/GeoIP
was being used rather than/usr/share/GeoIP
.
This build restores/usr/share/GeoIP
as the default directory for
these builds. Reported by Yvan. GitHub #222.