mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-11 17:29:16 +05:00
init.d/macos : fix tpws launch
This commit is contained in:
parent
e89a2c6692
commit
e2f23a7028
@ -6,10 +6,10 @@ zapret_custom_daemons()
|
|||||||
{
|
{
|
||||||
# $1 - 1 - run, 0 - stop
|
# $1 - 1 - run, 0 - stop
|
||||||
local opt="--user=root --port=$TPPORT_MY"
|
local opt="--user=root --port=$TPPORT_MY"
|
||||||
filter_apply_hostlist_target opt
|
|
||||||
filter_apply_suffix opt "$TPWS_OPT_SUFFIX"
|
|
||||||
tpws_apply_binds opt
|
tpws_apply_binds opt
|
||||||
opt="$opt $TPWS_OPT"
|
opt="$opt $TPWS_OPT"
|
||||||
|
filter_apply_hostlist_target opt
|
||||||
|
filter_apply_suffix opt "$TPWS_OPT_SUFFIX"
|
||||||
do_daemon $1 1 "$TPWS" "$opt"
|
do_daemon $1 1 "$TPWS" "$opt"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -163,10 +163,10 @@ zapret_do_daemons()
|
|||||||
}
|
}
|
||||||
# MacOS requires root. kernel hardcoded requirement for /dev/pf ioctls
|
# MacOS requires root. kernel hardcoded requirement for /dev/pf ioctls
|
||||||
opt="--user=root --port=$TPPORT"
|
opt="--user=root --port=$TPPORT"
|
||||||
filter_apply_hostlist_target opt
|
|
||||||
filter_apply_suffix opt "$TPWS_OPT_SUFFIX"
|
|
||||||
tpws_apply_binds opt
|
tpws_apply_binds opt
|
||||||
opt="$opt $TPWS_OPT"
|
opt="$opt $TPWS_OPT"
|
||||||
|
filter_apply_hostlist_target opt
|
||||||
|
filter_apply_suffix opt "$TPWS_OPT_SUFFIX"
|
||||||
do_daemon $1 1 "$TPWS" "$opt"
|
do_daemon $1 1 "$TPWS" "$opt"
|
||||||
;;
|
;;
|
||||||
tpws-socks)
|
tpws-socks)
|
||||||
@ -176,9 +176,9 @@ zapret_do_daemons()
|
|||||||
}
|
}
|
||||||
opt="--socks --user=$WS_USER --port=$TPPORT"
|
opt="--socks --user=$WS_USER --port=$TPPORT"
|
||||||
tpws_apply_socks_binds opt
|
tpws_apply_socks_binds opt
|
||||||
|
opt="$opt $TPWS_OPT"
|
||||||
filter_apply_hostlist_target opt
|
filter_apply_hostlist_target opt
|
||||||
filter_apply_suffix opt "$TPWS_OPT_SUFFIX"
|
filter_apply_suffix opt "$TPWS_OPT_SUFFIX"
|
||||||
opt="$opt $TPWS_OPT"
|
|
||||||
do_daemon $1 1 "$TPWS" "$opt"
|
do_daemon $1 1 "$TPWS" "$opt"
|
||||||
;;
|
;;
|
||||||
filter)
|
filter)
|
||||||
|
Loading…
Reference in New Issue
Block a user