]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - html/cgi-bin/logs.cgi/firewalllogcountry.dat
Adjust CGI files to work with latest location-function.pl changes.
[people/pmueller/ipfire-2.x.git] / html / cgi-bin / logs.cgi / firewalllogcountry.dat
index 701abab2c84987d65a7f872483c2bdbb5dd49f1f..e3901b945d8b37b72f40557ea8b846435da46571 100644 (file)
@@ -22,9 +22,6 @@ require "${General::swroot}/location-functions.pl";
 require "${General::swroot}/lang.pl";
 require "${General::swroot}/header.pl";
 
-# Libloc database handle.
-my $libloc_db_handle = &Location::Functions::init();
-
 use POSIX();
 
 my %cgiparams=();
@@ -311,7 +308,7 @@ foreach $_ (@log)
                # Traffic from red
                if($srcaddr ne '') {
                        # srcaddr is set
-                       my $ccode = &Location::Functions::lookup_country_code($libloc_db_handle, $srcaddr);
+                       my $ccode = &Location::Functions::lookup_country_code($srcaddr);
                        if ($ccode eq '') {
                                $ccode = 'unknown';
                        }