minor bugfix to ensure that the proper firewall is used to collect system specs

This commit is contained in:
Michael Rash
2011-10-13 20:41:12 -04:00
parent 103cd2a8fb
commit 45ecc6f399
+4 -2
View File
@@ -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);