]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commitdiff
rules.pl: fix missing blank in 'if'-condition
authorMatthias Fischer <matthias.fischer@ipfire.org>
Sat, 19 Aug 2017 11:29:58 +0000 (13:29 +0200)
committerMatthias Fischer <matthias.fischer@ipfire.org>
Sat, 19 Aug 2017 11:30:16 +0000 (13:30 +0200)
Triggered by https://forum.ipfire.org/viewtopic.php?f=22&t=19304

Best,
Matthias

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
config/firewall/rules.pl

index 8b0c6ddc8e69ac06339c39e3a1aec11ca47f445f..efbe9cfef1b843e4a885cdf60b360cbf8d2c30ff 100644 (file)
@@ -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 ($geoipsettings{$location} eq "on") {
                        run("$IPTABLES -A GEOIPBLOCK -m geoip --src-cc $location -j DROP");
                }
        }