mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
Captive-Portal: fix wrong expiretime of unused vouchers
Signed-off-by: Alexander Marx <alexander.marx@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
facfdcd040
commit
f3802750ac
@@ -460,7 +460,7 @@ END
|
||||
if ($voucherhash{$key}[2] eq '0'){
|
||||
$endtime=$Lang::tr{'Captive nolimit'};
|
||||
}else{
|
||||
$endtime=sub{sprintf '%02d.%02d.%04d %02d:%02d', $_[3], $_[4]+1, $_[5]+1900, $_[2], $_[1] }->(localtime($voucherhash{$key}[0]+$voucherhash{$key}[2]));
|
||||
$endtime=sub{sprintf '%02d.%02d.%04d %02d:%02d', $_[3], $_[4]+1, $_[5]+1900, $_[2], $_[1] }->(localtime(time()+$voucherhash{$key}[2]));
|
||||
}
|
||||
|
||||
if ($count % 2){
|
||||
|
||||
Reference in New Issue
Block a user