Skip to content

Commit

Permalink
Merge pull request #170 from dbrlk/hotfix/update-maxmind-local-url
Browse files Browse the repository at this point in the history
Maxmind download URLs updated.
  • Loading branch information
stevebauman committed Jun 4, 2024
2 parents c95c397 + 227d734 commit 603d75b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/location.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
'local' => [
'type' => 'city',
'path' => database_path('maxmind/GeoLite2-City.mmdb'),
'url' => sprintf('https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=%s&suffix=tar.gz', env('MAXMIND_LICENSE_KEY')),
'url' => sprintf('https://download.maxmind.com/app/geoip_download_by_token?edition_id=GeoLite2-City&license_key=%s&suffix=tar.gz', env('MAXMIND_LICENSE_KEY')),
],
],

Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ return [
'local' => [
// ...

+ 'url' => sprintf('https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=%s&suffix=tar.gz', env('MAXMIND_LICENSE_KEY')),
+ 'url' => sprintf('https://download.maxmind.com/app/geoip_download_by_token?edition_id=GeoLite2-City&license_key=%s&suffix=tar.gz', env('MAXMIND_LICENSE_KEY')),
],
],
];
Expand Down
2 changes: 1 addition & 1 deletion src/Drivers/MaxMind.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ protected function getDatabaseUrl(): string
{
return config(
'location.maxmind.local.url',
sprintf('https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=%s&suffix=tar.gz', $this->getLicenseKey()),
sprintf('https://download.maxmind.com/app/geoip_download_by_token?edition_id=GeoLite2-City&license_key=%s&suffix=tar.gz', $this->getLicenseKey()),
);
}

Expand Down

0 comments on commit 603d75b

Please sign in to comment.