From 228572afb599e6fa3909acc104b2b39e013b6d00 Mon Sep 17 00:00:00 2001 From: bol-van Date: Thu, 31 Oct 2024 18:34:05 +0300 Subject: [PATCH] init.d: fix apply of TPWS_SOCKS_OPT to tpws socks mode --- init.d/macos/functions | 2 +- init.d/openwrt/zapret | 2 +- init.d/sysv/functions | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/init.d/macos/functions b/init.d/macos/functions index 8ede4be..28af67c 100644 --- a/init.d/macos/functions +++ b/init.d/macos/functions @@ -164,7 +164,7 @@ standard_mode_daemons() [ "$TPWS_SOCKS_ENABLE" = 1 ] && { opt="--socks --user=$WS_USER --port=$TPPORT_SOCKS" tpws_apply_socks_binds opt - opt="$opt $TPWS_OPT" + opt="$opt $TPWS_SOCKS_OPT" filter_apply_hostlist_target opt do_daemon $1 2 "$TPWS" "$opt" } diff --git a/init.d/openwrt/zapret b/init.d/openwrt/zapret index 2a70191..5c56472 100755 --- a/init.d/openwrt/zapret +++ b/init.d/openwrt/zapret @@ -123,7 +123,7 @@ standard_mode_daemons() run_tpws 1 "$opt" } [ "$TPWS_SOCKS_ENABLE" = 1 ] && { - opt="--port=$TPPORT_SOCKS $TPWS_OPT" + opt="--port=$TPPORT_SOCKS $TPWS_SOCKS_OPT" filter_apply_hostlist_target opt run_tpws_socks 2 "$opt" } diff --git a/init.d/sysv/functions b/init.d/sysv/functions index d4dea2e..2ba59cd 100644 --- a/init.d/sysv/functions +++ b/init.d/sysv/functions @@ -291,7 +291,7 @@ standard_mode_daemons() do_tpws $1 1 "$opt" } [ "$TPWS_SOCKS_ENABLE" = 1 ] && { - opt="--port=$TPPORT_SOCKS $TPWS_OPT" + opt="--port=$TPPORT_SOCKS $TPWS_SOCKS_OPT" filter_apply_hostlist_target opt do_tpws_socks $1 2 "$opt" }