mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-03 03:59:16 +01:00
Correct handling of '-p'
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
23c4ebf2a0
commit
531474592c
@ -2771,7 +2771,7 @@ restart_command() {
|
|||||||
option=${option#n}
|
option=${option#n}
|
||||||
;;
|
;;
|
||||||
p*)
|
p*)
|
||||||
[ -n "$(which conntrack)" ] || fatal_error "The '-p' option requires the conntrack utility which does not appear to be installed on this system"
|
[ -n "$(mywhich conntrack)" ] || fatal_error "The '-p' option requires the conntrack utility which does not appear to be installed on this system"
|
||||||
g_purge=Yes
|
g_purge=Yes
|
||||||
option=${option%p}
|
option=${option%p}
|
||||||
;;
|
;;
|
||||||
|
@ -403,7 +403,7 @@ conditionally_flush_conntrack() {
|
|||||||
|
|
||||||
if [ -n "$g_purge" ]; then
|
if [ -n "$g_purge" ]; then
|
||||||
if [ -n $(mywhich conntrack) ]; then
|
if [ -n $(mywhich conntrack) ]; then
|
||||||
conntrack -f ipv$g_family -F
|
conntrack -F
|
||||||
else
|
else
|
||||||
error_message "WARNING: The '-p' option requires the conntrack utility which does not appear to be installed on this system"
|
error_message "WARNING: The '-p' option requires the conntrack utility which does not appear to be installed on this system"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user