fix: fail2ban application was setting the wrong variables (#6582)

This commit is contained in:
Neil Lathwood
2017-05-04 19:22:13 +01:00
committed by Tony Murray
parent bdf1616c76
commit 4ba8be2dfe

View File

@@ -10,9 +10,10 @@ $app_id = $app['app_id'];
$options = '-O qv';
$oid = '.1.3.6.1.4.1.8072.1.3.2.3.1.2.8.102.97.105.108.50.98.97.110';
$f2b = snmp_walk($device, $oid, $options);
update_application($app, $new_component);
$f2b = trim($f2b, '"');
update_application($app, $f2b);
$bannedStuff = explode("\n", $new_component);
$bannedStuff = explode("\n", $f2b);
$total_banned=$bannedStuff[0];
$firewalled=$bannedStuff[1];