]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - config/cfgroot/ids-functions.pl
ids-functions.pl: Use "enabled/disabled" to mark if a rule should be
[ipfire-2.x.git] / config / cfgroot / ids-functions.pl
index d318f464a2eb47bf4f919c7252ea099f764d0535..e09fe0485951fd1f9b97e96285c1b41044c210ce 100644 (file)
@@ -751,10 +751,10 @@ sub process_ruleset(@) {
                                next if ($rev lt $rules{$sid});
 
                                # Check if the rule should be enabled or disabled.
-                               if ($modifications{$sid} eq "on") {
+                               if ($modifications{$sid} eq "enabled") {
                                        # Drop the # at the start of the line.
                                        $line =~ s/^\#//;
-                               } elsif ($modifications{$sid} eq "off") {
+                               } elsif ($modifications{$sid} eq "disabled") {
                                        # Add a # at the start of the line to disable the rule.
                                        $line = "#$line" unless ($line =~ /^#/);
                                }