accept tos

This commit is contained in:
Vladislav Yarmak 2021-06-20 00:52:29 +03:00
parent 34772aed98
commit 233e9f1df1
1 changed files with 4 additions and 6 deletions

View File

@ -1,15 +1,13 @@
#!/bin/bash
yes | warp-cli status
(
while ! warp-cli register; do
while ! warp-cli --accept-tos register; do
sleep 1
>&2 echo "Awaiting warp-svc become online..."
done
warp-cli set-mode proxy
warp-cli set-proxy-port 40001
warp-cli connect
warp-cli --accept-tos set-mode proxy
warp-cli --accept-tos set-proxy-port 40001
warp-cli --accept-tos connect
haproxy -f /etc/haproxy/haproxy.cfg
) &