mirror of
https://github.com/firehol/firehol.git
synced 2024-06-30 19:02:21 +00:00
fix for bidirectional class groups
This commit is contained in:
parent
6c17cb4d88
commit
46923899eb
@ -1296,6 +1296,7 @@ interface_close() {
|
||||
|
||||
# move the exiting file to a new place, to avoid recursion
|
||||
mv "${FIREQOS_SAVE}" "${FIREQOS_SAVE}.run"
|
||||
# cat "${FIREQOS_SAVE}.run"
|
||||
|
||||
# close the existing, input, interface
|
||||
interface_close
|
||||
@ -1696,18 +1697,22 @@ class() {
|
||||
if [ "$1" = "group" ]
|
||||
then
|
||||
shift
|
||||
|
||||
|
||||
# if this is the end of a group class
|
||||
if [ "$1" = "end" ]
|
||||
then
|
||||
shift
|
||||
|
||||
|
||||
if [ $parent_stack_size -le 1 ]
|
||||
then
|
||||
error "No open class group to end."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# make sure we don't save these statements too
|
||||
local isave=$interface_save
|
||||
interface_save=0
|
||||
|
||||
if [ $parent_default_added -eq 0 ]
|
||||
then
|
||||
class default
|
||||
@ -1719,6 +1724,9 @@ class() {
|
||||
|
||||
check_committed_rate
|
||||
|
||||
# restore the previous save status
|
||||
interface_save=$isave
|
||||
|
||||
if [ $parent_stab -eq 1 ]
|
||||
then
|
||||
parent_pull
|
||||
|
Loading…
Reference in New Issue
Block a user