mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-17 06:23:00 +02:00
firewall: Suppress warning about uninitialized array in GeoIP code
Fixes #11597 Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -608,7 +608,7 @@ sub geoipblock {
|
||||
# create iptables rules, if blocking this country
|
||||
# is enabled.
|
||||
foreach my $location (@locations) {
|
||||
if($geoipsettings{$location} eq "on") {
|
||||
if(exists $geoipsettings{$location} && $geoipsettings{$location} eq "on") {
|
||||
run("$IPTABLES -A GEOIPBLOCK -m geoip --src-cc $location -j DROP");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@ srv/web/ipfire/cgi-bin/fireinfo.cgi
|
||||
srv/web/ipfire/cgi-bin/ids.cgi
|
||||
srv/web/ipfire/cgi-bin/logs.cgi/showrequestfromcountry.dat
|
||||
srv/web/ipfire/cgi-bin/logs.cgi/urlfilter.dat
|
||||
usr/lib/firewall/rules.pl
|
||||
usr/local/bin/rebuild-initrd
|
||||
usr/local/bin/syslogdctrl
|
||||
usr/sbin/updxlrator
|
||||
|
||||
Reference in New Issue
Block a user