Skip to content

Commit

Permalink
init.d: fix apply of TPWS_SOCKS_OPT to tpws socks mode
Browse files Browse the repository at this point in the history
  • Loading branch information
bol-van committed Oct 31, 2024
1 parent ebb89c4 commit 228572a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion init.d/macos/functions
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
2 changes: 1 addition & 1 deletion init.d/openwrt/zapret
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
2 changes: 1 addition & 1 deletion init.d/sysv/functions
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit 228572a

Please sign in to comment.