mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-30 05:50:53 +03:00
init: allow override TPPORT and QNUM
This commit is contained in:
parent
e82ad0641f
commit
1222c0534b
@ -8,7 +8,7 @@ HOSTLIST="$ZHOSTLIST.gz"
|
|||||||
[ -f "$HOSTLIST" ] || HOSTLIST="$ZUSERLIST"
|
[ -f "$HOSTLIST" ] || HOSTLIST="$ZUSERLIST"
|
||||||
|
|
||||||
PIDDIR=/var/run
|
PIDDIR=/var/run
|
||||||
TPPORT=988
|
[ -n "$TPPORT" ] || TPPORT=988
|
||||||
TPWS_USER=daemon
|
TPWS_USER=daemon
|
||||||
TPWS_WAIT="--bind-wait-ip=60"
|
TPWS_WAIT="--bind-wait-ip=60"
|
||||||
TPWS="$ZAPRET_BASE/tpws/tpws"
|
TPWS="$ZAPRET_BASE/tpws/tpws"
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
[ -n "$ZAPRET_BASE" ] || ZAPRET_BASE=/opt/zapret
|
[ -n "$ZAPRET_BASE" ] || ZAPRET_BASE=/opt/zapret
|
||||||
. "$ZAPRET_BASE/config"
|
. "$ZAPRET_BASE/config"
|
||||||
|
|
||||||
QNUM=200
|
[ -n "$QNUM" ] || QNUM=200
|
||||||
TPPORT=988
|
[ -n "$TPPORT" ] || TPPORT=988
|
||||||
TPWS_USER=daemon
|
TPWS_USER=daemon
|
||||||
TPWS_LOCALHOST4=127.0.0.127
|
TPWS_LOCALHOST4=127.0.0.127
|
||||||
[ -n "$DESYNC_MARK" ] || DESYNC_MARK=0x40000000
|
[ -n "$DESYNC_MARK" ] || DESYNC_MARK=0x40000000
|
||||||
|
@ -19,13 +19,10 @@ fi
|
|||||||
|
|
||||||
PIDDIR=/var/run
|
PIDDIR=/var/run
|
||||||
|
|
||||||
QNUM=200
|
|
||||||
NFQWS_USER=daemon
|
NFQWS_USER=daemon
|
||||||
NFQWS="$ZAPRET_BASE/nfq/nfqws"
|
NFQWS="$ZAPRET_BASE/nfq/nfqws"
|
||||||
NFQWS_OPT_BASE="--qnum=$QNUM --user=$NFQWS_USER"
|
NFQWS_OPT_BASE="--qnum=$QNUM --user=$NFQWS_USER"
|
||||||
|
|
||||||
TPWS_USER=daemon
|
|
||||||
TPPORT=988
|
|
||||||
TPWS="$ZAPRET_BASE/tpws/tpws"
|
TPWS="$ZAPRET_BASE/tpws/tpws"
|
||||||
TPWS_LOCALHOST4=127.0.0.127
|
TPWS_LOCALHOST4=127.0.0.127
|
||||||
HOSTLIST="$ZAPRET_BASE/ipset/zapret-hosts.txt.gz"
|
HOSTLIST="$ZAPRET_BASE/ipset/zapret-hosts.txt.gz"
|
||||||
|
@ -10,11 +10,11 @@ IPSET_CR="$ZAPRET_BASE/ipset/create_ipset.sh"
|
|||||||
|
|
||||||
WS_USER=tpws
|
WS_USER=tpws
|
||||||
|
|
||||||
QNUM=200
|
[ -n "$QNUM" ] || QNUM=200
|
||||||
NFQWS="$ZAPRET_BASE/nfq/nfqws"
|
NFQWS="$ZAPRET_BASE/nfq/nfqws"
|
||||||
NFQWS_OPT_BASE="--qnum=$QNUM --user=$WS_USER"
|
NFQWS_OPT_BASE="--qnum=$QNUM --user=$WS_USER"
|
||||||
|
|
||||||
TPPORT=988
|
[ -n "$TPPORT" ] || TPPORT=988
|
||||||
TPWS="$ZAPRET_BASE/tpws/tpws"
|
TPWS="$ZAPRET_BASE/tpws/tpws"
|
||||||
TPWS_LOCALHOST4=127.0.0.127
|
TPWS_LOCALHOST4=127.0.0.127
|
||||||
HOSTLIST="$ZAPRET_BASE/ipset/zapret-hosts.txt.gz"
|
HOSTLIST="$ZAPRET_BASE/ipset/zapret-hosts.txt.gz"
|
||||||
|
Loading…
Reference in New Issue
Block a user