Updates to GeoIP lookup stuff.
This commit is contained in:
parent
1905606276
commit
587e341c59
5 changed files with 97 additions and 39 deletions
|
@ -7,7 +7,6 @@ use Index\Data\ConnectionFailedException;
|
|||
use Index\Data\DbTools;
|
||||
use Misuzu\Config\CfgType;
|
||||
use Misuzu\Config\DbConfig;
|
||||
use Misuzu\Net\GeoIP;
|
||||
use Misuzu\Net\IPAddress;
|
||||
use Misuzu\Users\User;
|
||||
use Misuzu\Users\UserNotFoundException;
|
||||
|
@ -139,7 +138,7 @@ if(!is_readable(MSZ_STORAGE) || !is_writable(MSZ_STORAGE)) {
|
|||
exit;
|
||||
}
|
||||
|
||||
GeoIP::init($cfg->getValue('geoip.database', CfgType::T_STR, '/var/lib/GeoIP/GeoLite2-Country.mmdb'));
|
||||
IPAddress::init($ctx);
|
||||
|
||||
if(!MSZ_DEBUG) {
|
||||
$twigCacheDirSfx = GitInfo::hash(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue