From 3ee381aff6f5a3235c4c610bf14db79f940b019e Mon Sep 17 00:00:00 2001 From: bol-van Date: Fri, 4 Feb 2022 20:58:25 +0300 Subject: [PATCH] blockcheck: use 3003 GID in tpws for android compat --- blockcheck.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/blockcheck.sh b/blockcheck.sh index 817cf46..7acee08 100755 --- a/blockcheck.sh +++ b/blockcheck.sh @@ -6,7 +6,8 @@ ZAPRET_BASE="$EXEDIR" [ -n "$QNUM" ] || QNUM=59780 [ -n "$TPPORT" ] || TPPORT=993 -[ -n "$TPWS_UID" ] || TPWS_UID=1:3003 +[ -n "$TPWS_UID" ] || TPWS_UID=1 +[ -n "$TPWS_GID" ] || TPWS_GID=3003 [ -n "$NFQWS" ] || NFQWS="$ZAPRET_BASE/nfq/nfqws" [ -n "$DVTWS" ] || DVTWS="$ZAPRET_BASE/nfq/dvtws" [ -n "$TPWS" ] || TPWS="$ZAPRET_BASE/tpws/tpws" @@ -410,7 +411,7 @@ pktws_start() } tpws_start() { - "$TPWS" --uid $TPWS_UID:$TPWS_UID --bind-addr=$LOCALHOST --port=$TPPORT "$@" >/dev/null & + "$TPWS" --uid $TPWS_UID:$TPWS_GID --bind-addr=$LOCALHOST --port=$TPPORT "$@" >/dev/null & PID=$! # give some time to initialize sleep 1