|
|
@ -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); |
|
|
|