mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-20 12:39:06 +01:00
Correct check for new ipset match syntax
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
95acabe97e
commit
fb9e3a84c5
@ -1670,8 +1670,8 @@ determine_capabilities() {
|
|||||||
|
|
||||||
if qt ipset -N $chain hash:ip family inet6; then
|
if qt ipset -N $chain hash:ip family inet6; then
|
||||||
IPSET_V5=Yes
|
IPSET_V5=Yes
|
||||||
if qt $IP6TABLES -A $chain -m set --set $chain src -j ACCEPT; then
|
if qt $IP6TABLES -A $chain -m set --match-set $chain src -j ACCEPT; then
|
||||||
qt $IP6TABLES -D $chain -m set --set $chain src -j ACCEPT
|
qt $IP6TABLES -D $chain -m set --match-set $chain src -j ACCEPT
|
||||||
IPSET_MATCH=Yes
|
IPSET_MATCH=Yes
|
||||||
elif qt $IP6TABLES -A $chain -m set --set $chain src -j ACCEPT; then
|
elif qt $IP6TABLES -A $chain -m set --set $chain src -j ACCEPT; then
|
||||||
qt $IP6TABLES -D $chain -m set --set $chain src -j ACCEPT
|
qt $IP6TABLES -D $chain -m set --set $chain src -j ACCEPT
|
||||||
|
Loading…
Reference in New Issue
Block a user