From: Stefan Schantl Date: Fri, 6 Dec 2019 13:39:54 +0000 (+0100) Subject: remote.cgi: Use new location lookup method. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9288b110115900f87049bf378fd3f06c056306d8;p=people%2Fstevee%2Fipfire-2.x.git remote.cgi: Use new location lookup method. Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/remote.cgi b/html/cgi-bin/remote.cgi index 8beb84efa7..d94d27d425 100644 --- a/html/cgi-bin/remote.cgi +++ b/html/cgi-bin/remote.cgi @@ -278,6 +278,9 @@ sub printactivelogins() } else { # list active logins... + # Libloc database handle. + my $libloc_db_handle = &GeoIP::init(); + foreach my $line (@output) { my @arry = split(/\ +/, $line); @@ -288,7 +291,7 @@ sub printactivelogins() $remoteip =~ s/[()]//g; # display more information about that IP adress... - my $ccode = &GeoIP::lookup($remoteip); + my $ccode = &GeoIP::lookup_country_code($libloc_db_handle, $remoteip); my $flag_icon = &GeoIP::get_flag_icon($ccode); # get rDNS...