init.d: macos WS_USER

This commit is contained in:
bol-van 2021-11-06 11:24:54 +03:00
parent fa8f061710
commit 53ff5c5b8c

View File

@ -9,7 +9,7 @@ HOSTLIST="$ZHOSTLIST.gz"
PIDDIR=/var/run
[ -n "$TPPORT" ] || TPPORT=988
[ -n "$TPWS_USER" ] || TPWS_USER=daemon
[ -n "$WS_USER" ] || WS_USER=daemon
TPWS_WAIT="--bind-wait-ifup=30 --bind-wait-ip=30"
TPWS_WAIT_SOCKS6="$TPWS_WAIT --bind-wait-ip-linklocal=30"
[ -n "$TPWS" ] || TPWS="$ZAPRET_BASE/tpws/tpws"
@ -456,7 +456,7 @@ zapret_do_daemons()
echo "both ipv4 and ipv6 are disabled. nothing to do"
return 0
}
opt="--socks --user=$TPWS_USER --port=$TPPORT"
opt="--socks --user=$WS_USER --port=$TPPORT"
tpws_apply_socks_binds opt
filter_apply_hostlist_target opt
opt="$opt $TPWS_OPT"