summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-02-10 20:42:30 +0100
committerGitHub <noreply@github.com>2023-02-10 20:42:30 +0100
commitf8d57eb977526c8585f1ee22c925555710bafb67 (patch)
tree15086be8ee3a9bd354668c3f5911eb98dde4b7f6
parent32c13a7f5f36233d0834ac813eb66839457fdfc7 (diff)
parentc8b015fe875f6cf6d6d1e09dd326af84d36dd3b7 (diff)
downloadvyatta-conntrack-1.3.5.tar.gz
vyatta-conntrack-1.3.5.zip
Merge pull request #8 from aapostoliuk/T4993-equuleus1.3.81.3.71.3.61.3.51.3.41.3.3-epa11.3.3equuleus
conntrack: T4993: Fix comment for correct delete ignore rules
-rw-r--r--lib/Vyatta/Conntrack/RuleIgnore.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Vyatta/Conntrack/RuleIgnore.pm b/lib/Vyatta/Conntrack/RuleIgnore.pm
index 55a2315..0bef8c2 100644
--- a/lib/Vyatta/Conntrack/RuleIgnore.pm
+++ b/lib/Vyatta/Conntrack/RuleIgnore.pm
@@ -26,8 +26,7 @@ sub rule {
my $tcp_and_udp = 0;
# set CLI rule num as comment
my @level_nodes = split (' ', $self->{_comment});
- $rule .= " -m comment --comment \"$level_nodes[2]-$level_nodes[4]\" ";
-
+
if (defined($self->{_interface})) {
$rule .= " -i $self->{_interface} ";
}
@@ -58,6 +57,7 @@ sub rule {
} else {
$rule .= " $srcrule $dstrule ";
}
+ $rule .= " -m comment --comment \"$level_nodes[2]-$level_nodes[4]\" ";
return $rule;
}