mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +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.
|
# 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};
|
delete $delhash{$last_key};
|
||||||
|
|
||||||
&General::writehasharray($fwdfwsettings{'config'}, \%delhash);
|
&General::writehasharray($fwdfwsettings{'config'}, \%delhash);
|
||||||
|
|||||||
Reference in New Issue
Block a user