Spaces:
Runtime error
Runtime error
Create start.sh
Browse files
start.sh
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -e
|
| 3 |
+
|
| 4 |
+
# Start WARP daemon
|
| 5 |
+
warp-svc &
|
| 6 |
+
sleep 5
|
| 7 |
+
|
| 8 |
+
# Register in proxy-only mode (no TUN needed)
|
| 9 |
+
warp-cli --accept-tos registration new || true
|
| 10 |
+
warp-cli mode proxy
|
| 11 |
+
warp-cli proxy port 40000
|
| 12 |
+
warp-cli connect
|
| 13 |
+
sleep 3
|
| 14 |
+
|
| 15 |
+
echo "[warp] WARP proxy started on socks5://127.0.0.1:40000"
|
| 16 |
+
|
| 17 |
+
# Start cobalt with WARP as outbound proxy
|
| 18 |
+
exec env \
|
| 19 |
+
ALL_PROXY=socks5://127.0.0.1:40000 \
|
| 20 |
+
HTTP_PROXY=socks5://127.0.0.1:40000 \
|
| 21 |
+
HTTPS_PROXY=socks5://127.0.0.1:40000 \
|
| 22 |
+
node src/cobalt.js
|