reanimate wbstream dc mode

This commit is contained in:
kulikov0 committed 2026-05-21 22:29:20 +02:00
1 parent a02fd0af9b
commit c02843d6c3
14 files changed
+155 -45

No files matched your search

+8 -1
View File
@@ -10,6 +10,7 @@ set -u
ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
CREATOR="$ROOT/headless/wbstream/headless-wbstream-creator"
JOINER="$ROOT/headless/wbstream-joiner/headless-wbstream-joiner"
COOKIES="${WBSTREAM_COOKIES:-$ROOT/cookies-wbstream.json}"
SOCKS_PORT=11080
TARGET_URL="https://api.ipify.org"
PROBE_TIMEOUT=15
@@ -47,9 +48,15 @@ require_bin() {
require_bin "$CREATOR"
require_bin "$JOINER"
if [ ! -f "$COOKIES" ]; then
echo "FAIL: cookies file not found at $COOKIES" >&2
echo "Set WBSTREAM_COOKIES or place cookies-wbstream.json at repo root." >&2
exit 2
fi
echo "=== mode=$mode_arg ==="
"$CREATOR" > "$CREATOR_LOG" 2>&1 &
"$CREATOR" --cookies "$COOKIES" > "$CREATOR_LOG" 2>&1 &
CREATOR_PID=$!
waited=0