|
|
@ -1,7 +1,8 @@ |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
my $status = ${'httpd-e-smith'}{'status'} || 'disabled'; |
|
|
|
my $status = ${'httpd-e-smith'}{'status'} || 'disabled'; |
|
|
|
return "" if ($status ne 'enabled'); |
|
|
|
my $f2b = ${'httpd-e-smith'}{'Fail2Ban'} || 'enabled'; |
|
|
|
|
|
|
|
return "" if (($status ne 'enabled') || ($f2b ne 'enabled')); |
|
|
|
my @ports = (); |
|
|
|
my @ports = (); |
|
|
|
push @ports, (${'httpd-e-smith'}{'TCPPort'} || '80'); |
|
|
|
push @ports, (${'httpd-e-smith'}{'TCPPort'} || '80'); |
|
|
|
push @ports, ($modSSL{'TCPPort'} || '443'); |
|
|
|
push @ports, ($modSSL{'TCPPort'} || '443'); |
|
|
|