use TPWS_OPT_SUFFIX in scripts

This commit is contained in:
bol-van
2024-09-20 09:52:31 +03:00
parent d6236cfe91
commit 1c162c0639
7 changed files with 10 additions and 1 deletions

View File

@@ -164,6 +164,7 @@ zapret_do_daemons()
# MacOS requires root. kernel hardcoded requirement for /dev/pf ioctls
opt="--user=root --port=$TPPORT"
filter_apply_hostlist_target opt
filter_apply_suffix opt "$TPWS_OPT_SUFFIX"
tpws_apply_binds opt
opt="$opt $TPWS_OPT"
do_daemon $1 1 "$TPWS" "$opt"
@@ -176,6 +177,7 @@ zapret_do_daemons()
opt="--socks --user=$WS_USER --port=$TPPORT"
tpws_apply_socks_binds opt
filter_apply_hostlist_target opt
filter_apply_suffix opt "$TPWS_OPT_SUFFIX"
opt="$opt $TPWS_OPT"
do_daemon $1 1 "$TPWS" "$opt"
;;