mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-18 11:38:14 +01:00
Enable 'show dynamic' for dynamic zones.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
8c97681421
commit
1df48b46ef
@ -523,7 +523,7 @@ find_sets() {
|
|||||||
local junk
|
local junk
|
||||||
local setname
|
local setname
|
||||||
|
|
||||||
$IPSETN -L | grep "^Name: ${1}_" | while read junk setname; do echo $setname; done
|
$IPSETN -L | egrep "^Name: ${1}(_.+)?$" | while read junk setname; do echo $setname; done
|
||||||
}
|
}
|
||||||
|
|
||||||
list_zone() {
|
list_zone() {
|
||||||
@ -534,9 +534,9 @@ list_zone() {
|
|||||||
determine_ipset_version
|
determine_ipset_version
|
||||||
|
|
||||||
if [ $g_family -eq 4 ]; then
|
if [ $g_family -eq 4 ]; then
|
||||||
sets=$($IPSETN -L | grep "^$1_");
|
sets=$($IPSETN -L | egrep "^$1(_.+)?");
|
||||||
else
|
else
|
||||||
sets=$($IPSETN -L | grep "^6_$1_")
|
sets=$($IPSETN -L | egrep "^6_$1(_.+)?")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "$sets" ] || sets=$(find_sets $1)
|
[ -n "$sets" ] || sets=$(find_sets $1)
|
||||||
|
Loading…
Reference in New Issue
Block a user