Fix port, which was incorrectly set to proto

tags/0.1.3_el5 0.1.3_el5
Daniel Berteaud 11 years ago
parent d5d4839b9b
commit 43c8140cbd
  1. 4
      root/sbin/e-smith/smeserver-fail2ban

@ -119,8 +119,8 @@ else{
$props{'Host'} = $opts{host}; $props{'Host'} = $opts{host};
$props{'Protocol'} = $opts{proto} $props{'Protocol'} = $opts{proto}
if ($opts{proto}); if ($opts{proto});
$props{'Port'} = $opts{proto} $props{'Port'} = $opts{port}
if ($opts{proto}); if ($opts{port});
$props{'BanTimestamp'} = time(); $props{'BanTimestamp'} = time();
$props{'UnbanTimestamp'} = time()+$opts{bantime}; $props{'UnbanTimestamp'} = time()+$opts{bantime};
$f2bdb->new_record($id, \%props); $f2bdb->new_record($id, \%props);

Loading…
Cancel
Save