diff --git a/Shorewall-core/lib.cli b/Shorewall-core/lib.cli index c37370423..8cf19edab 100644 --- a/Shorewall-core/lib.cli +++ b/Shorewall-core/lib.cli @@ -1896,6 +1896,8 @@ add_command() { ipset=6_${zone}_${interface}; fi + ipset=$(echo $ipset | sed 's/./_/g'); + if ! qt $IPSET -L $ipset; then fatal_error "Zone $zone, interface $interface does not have a dynamic host list" fi @@ -1984,6 +1986,8 @@ delete_command() { ipset=6_${zone}_${interface}; fi + ipset=$(echo $ipset | sed 's/./_/g'); + if ! qt $IPSET -L $ipset -n; then fatal_error "Zone $zone, interface $interface does not have a dynamic host list" fi