mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Merge branch 'ent-2418-GIS-Activar-resolucion-GIS-en-creacion-de-agente-por-IP' into 'develop'
Fixed recon_reverse_geolocation_file configuration See merge request artica/pandorafms!1611
This commit is contained in:
commit
dcad2ef9c7
@ -148,7 +148,7 @@ sub get_geoip_info {
|
||||
my $record = undef;
|
||||
eval {
|
||||
local $SIG{__DIE__};
|
||||
my $gi = Geo::IP->open("/tmp/pandorafms/GeoLiteCity.dat", GEOIP_STANDARD);
|
||||
my $gi = Geo::IP->open($pa_config->{'recon_reverse_geolocation_file'}, GEOIP_STANDARD);
|
||||
die("Cannot load the geoip file \"" . $pa_config->{'recon_reverse_geolocation_file'} . "\".\n") unless defined($gi);
|
||||
$record = $gi->record_by_addr($address);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user