From 45ecc6f39932271f7a70b1fe8dec99dc9d2438c0 Mon Sep 17 00:00:00 2001 From: Michael Rash Date: Thu, 13 Oct 2011 20:41:12 -0400 Subject: [PATCH] minor bugfix to ensure that the proper firewall is used to collect system specs --- test/test-fwknop.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/test-fwknop.pl b/test/test-fwknop.pl index e3644148..15b54b33 100755 --- a/test/test-fwknop.pl +++ b/test/test-fwknop.pl @@ -619,9 +619,11 @@ sub immediate_binding() { sub specs() { my $cmd = ''; - if ($firewall eq 'iptables') { + if ($firewall =~ m|/iptables$|) { $cmd = "iptables -v -n -L"; - } else { + } elsif ($firewall =~ m|/pf$|) { + $cmd = "pf -s rules"; + } elsif ($firewall =~ m|/ipfw$|) { $cmd = "ipfw list"; } &run_cmd($cmd, $CREATE);