1
0
mirror of https://github.com/librenms/librenms-agent.git synced 2024-05-09 09:54:52 +00:00

don't reuse the variable $iptables

This commit is contained in:
VVelox
2017-02-23 08:46:18 -06:00
committed by GitHub
parent 4b53918a7d
commit 1e160b86e4

View File

@@ -10,7 +10,7 @@
my $f2bc="/usr/bin/env fail2ban-client";
#make sure this path is correct
my $iptables="/usr/bin/env iptables";
my $iptablesPath="/usr/bin/env iptables";
# The cache file to use, if using caching.
my $cache='/var/cache/fail2ban';
@@ -103,7 +103,7 @@ if (defined( $opts{u} )){
};
if ( $os =~ '^Linux' ){
my $iptables=`$iptables -L -n`;
my $iptables=`$iptablesPath -L -n`;
my @iptablesA=split( /\n/, $iptables );
#check each line