mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-18 11:38:14 +01:00
use specified tool for capabilities detection
This commit is contained in:
parent
cc78073ce7
commit
8ac5f6c086
@ -1818,6 +1818,7 @@ determine_capabilities() {
|
||||
local chain
|
||||
local chain1
|
||||
|
||||
if [ -z "$g_tool" ]; then
|
||||
[ $g_family -eq 4 ] && tool=iptables || tool=ip6tables
|
||||
|
||||
g_tool=$(mywhich $tool)
|
||||
@ -1826,6 +1827,7 @@ determine_capabilities() {
|
||||
echo " ERROR: No executable $tool binary can be found on your PATH" >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
qt $g_tool -t nat -L -n && NAT_ENABLED=Yes || NAT_ENABLED=
|
||||
qt $g_tool -t mangle -L -n && MANGLE_ENABLED=Yes || MANGLE_ENABLED=
|
||||
|
Loading…
Reference in New Issue
Block a user