diff --git a/root/sbin/e-smith/smeserver-fail2ban b/root/sbin/e-smith/smeserver-fail2ban index 90b2403..589defc 100644 --- a/root/sbin/e-smith/smeserver-fail2ban +++ b/root/sbin/e-smith/smeserver-fail2ban @@ -119,8 +119,8 @@ else{ $props{'Host'} = $opts{host}; $props{'Protocol'} = $opts{proto} if ($opts{proto}); - $props{'Port'} = $opts{proto} - if ($opts{proto}); + $props{'Port'} = $opts{port} + if ($opts{port}); $props{'BanTimestamp'} = time(); $props{'UnbanTimestamp'} = time()+$opts{bantime}; $f2bdb->new_record($id, \%props);