mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-14 13:02:58 +02:00
Forward Firewall: hopefully fixed delte-bug. When deleting a rule, it was possible that the rulenumbers get "holes"
This commit is contained in:
committed by
Michael Tremer
parent
1aec05a64e
commit
275a92e800
@@ -510,7 +510,7 @@ sub deleterule
|
||||
}
|
||||
}
|
||||
# Remove the very last entry.
|
||||
my $last_key = (sort keys %delhash)[-1];
|
||||
my $last_key = (sort {$a <=> $b} keys %delhash)[-1];
|
||||
delete $delhash{$last_key};
|
||||
|
||||
&General::writehasharray($fwdfwsettings{'config'}, \%delhash);
|
||||
|
||||
Reference in New Issue
Block a user