diff options
author | John Southworth <john.southworth@vyatta.com> | 2012-02-28 15:23:35 -0800 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2012-02-28 15:23:35 -0800 |
commit | 24ff3aaee83e1860ffbcea1cbb274396b8da211d (patch) | |
tree | 456cf016a6af3a541ab2daf9d4e2b1c4665d0160 | |
parent | 67a3206ffbf152308b2014e84c6b1d0720c72277 (diff) | |
download | vyatta-op-firewall-24ff3aaee83e1860ffbcea1cbb274396b8da211d.tar.gz vyatta-op-firewall-24ff3aaee83e1860ffbcea1cbb274396b8da211d.zip |
always show saddr and daddr tags in output
-rwxr-xr-x | scripts/firewall/vyatta-show-firewall.pl | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/firewall/vyatta-show-firewall.pl b/scripts/firewall/vyatta-show-firewall.pl index 55424cd..73f825f 100755 --- a/scripts/firewall/vyatta-show-firewall.pl +++ b/scripts/firewall/vyatta-show-firewall.pl @@ -357,12 +357,8 @@ sub print_detail_rule { my $condition='condition - '; my $string_for_part3 = join (" ", @string_words_part3); chomp $string_for_part3; - if (!($string_words_part2[1] eq "anywhere")) { - $string_for_part3 = "daddr " . $string_words_part2[1] . " " .$string_for_part3; - } - if (!($string_words_part2[0] eq "anywhere")) { - $string_for_part3 = "saddr " . $string_words_part2[0] . " " . $string_for_part3; - } + $string_for_part3 = "daddr " . $string_words_part2[1] . " " .$string_for_part3; + $string_for_part3 = "saddr " . $string_words_part2[0] . " " . $string_for_part3; # make output pretty, replace iptables specific information with CLI related text $string_for_part3 =~ s/ipp2p\s\S+\s/P2P /g; |