From 29a1bb058f92c0dd7862258cdbbf1cd9b43ee7d9 Mon Sep 17 00:00:00 2001 From: Mohit Mehta Date: Wed, 6 May 2009 18:52:34 -0700 Subject: * rectify regex to search for tcp flags in iptables output --- scripts/firewall/vyatta-show-firewall.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/firewall/vyatta-show-firewall.pl b/scripts/firewall/vyatta-show-firewall.pl index ff479a0..ac945f7 100755 --- a/scripts/firewall/vyatta-show-firewall.pl +++ b/scripts/firewall/vyatta-show-firewall.pl @@ -315,7 +315,7 @@ sub print_detail_rule { } $string_for_part3 =~ s/policy match dir in pol\s(\S+)\s/IPSEC-MATCH $1 /g; if (defined $cli_rule->{_tcp_flags}) { - $string_for_part3 =~ s/tcp flags:(\S+)\s/tcp-flags $cli_rule->{_tcp_flags} /g; + $string_for_part3 =~ s/flags:(\S+)\s/tcp-flags $cli_rule->{_tcp_flags} /g; } # add information not displayed when listing the underlying iptable rule -- cgit v1.2.3