mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-26 20:20:53 +03:00
install_easy: flow offload linux check
This commit is contained in:
parent
9aab32a35a
commit
3bc41d62be
@ -81,7 +81,7 @@ check_system()
|
|||||||
OPENWRT_FW3=
|
OPENWRT_FW3=
|
||||||
|
|
||||||
local info
|
local info
|
||||||
local UNAME=$(uname)
|
UNAME=$(uname)
|
||||||
if [ "$UNAME" = "Linux" ]; then
|
if [ "$UNAME" = "Linux" ]; then
|
||||||
# do not use 'exe' because it requires root
|
# do not use 'exe' because it requires root
|
||||||
local INIT=$(sed 's/\x0/\n/g' /proc/1/cmdline | head -n 1)
|
local INIT=$(sed 's/\x0/\n/g' /proc/1/cmdline | head -n 1)
|
||||||
|
@ -333,7 +333,7 @@ ask_config_tmpdir()
|
|||||||
|
|
||||||
nft_flow_offload()
|
nft_flow_offload()
|
||||||
{
|
{
|
||||||
[ "$FWTYPE" = nftables -a "$MODE" != "tpws-socks" ] && [ "$FLOWOFFLOAD" = software -o "$FLOWOFFLOAD" = hardware ]
|
[ "$UNAME" = Linux -a "$FWTYPE" = nftables -a "$MODE" != "tpws-socks" ] && [ "$FLOWOFFLOAD" = software -o "$FLOWOFFLOAD" = hardware ]
|
||||||
}
|
}
|
||||||
|
|
||||||
ask_iface()
|
ask_iface()
|
||||||
@ -387,8 +387,6 @@ select_mode_iface()
|
|||||||
|
|
||||||
if [ "$SYSTEM" = "openwrt" ] || [ "$MODE" = "filter" ]; then return; fi
|
if [ "$SYSTEM" = "openwrt" ] || [ "$MODE" = "filter" ]; then return; fi
|
||||||
|
|
||||||
echo
|
|
||||||
|
|
||||||
case "$MODE" in
|
case "$MODE" in
|
||||||
tpws-socks)
|
tpws-socks)
|
||||||
echo "select LAN interface to allow socks access from your LAN. select NONE for localhost only."
|
echo "select LAN interface to allow socks access from your LAN. select NONE for localhost only."
|
||||||
|
Loading…
Reference in New Issue
Block a user