Skip to content

Commit

Permalink
Update index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
c0m4r authored Jan 14, 2024
1 parent c22fd76 commit 03d3e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
// Load GeoIP2-php database
// https://dev.maxmind.com/geoip/geolite2-free-geolocation-data
try {
$cityDbReader = new Reader('GeoLite2-City.mmdb');
$cityDbReader = new Reader($config->geoip_db);
$geoip = $cityDbReader->city($ip);
} catch(Exception $e) {
$geoip = array();
Expand Down

0 comments on commit 03d3e86

Please sign in to comment.