summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2012-02-28 15:23:35 -0800
committerJohn Southworth <john.southworth@vyatta.com>2012-02-28 15:23:35 -0800
commit24ff3aaee83e1860ffbcea1cbb274396b8da211d (patch)
tree456cf016a6af3a541ab2daf9d4e2b1c4665d0160
parent67a3206ffbf152308b2014e84c6b1d0720c72277 (diff)
downloadvyatta-op-firewall-24ff3aaee83e1860ffbcea1cbb274396b8da211d.tar.gz
vyatta-op-firewall-24ff3aaee83e1860ffbcea1cbb274396b8da211d.zip
always show saddr and daddr tags in output
-rwxr-xr-xscripts/firewall/vyatta-show-firewall.pl8
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;