mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
ipinfo.cgi: Use new location lookup method.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -52,7 +52,8 @@ if (&General::validip($addr)) {
|
||||
if (!$hostname) { $hostname = $Lang::tr{'lookup failed'}; }
|
||||
|
||||
# enumerate GeoIP information for IP address...
|
||||
my $ccode = &GeoIP::lookup($addr);
|
||||
my $db_handle = &GeoIP::init();
|
||||
my $ccode = &GeoIP::lookup_country_code($db_handle, $addr);
|
||||
my $flag_icon = &GeoIP::get_flag_icon($ccode);
|
||||
|
||||
my $sock = new IO::Socket::INET ( PeerAddr => $whoisname, PeerPort => 43, Proto => 'tcp');
|
||||
|
||||
Reference in New Issue
Block a user