Commit 8f037b9f authored by nanahira's avatar nanahira

support license

parent 0aad0288
Pipeline #11084 passed with stages
in 2 minutes and 3 seconds
# Warp Proxy
Proxy for Cloudflare Warp
\ No newline at end of file
Proxy for Cloudflare Warp
## Variables
* `FORWARD_PROXY_PORT` Port to listen to.
* `WARP_LICENSE` License key for Warp. If not specified a free license will be used.
......@@ -12,7 +12,11 @@ done
echo "Daemon started"
if [[ ! -f "/var/lib/cloudflare-warp/reg.json" ]]; then
warp-cli --accept-tos register
if [[ -n "$WARP_LICENSE" ]]; then
warp-cli --accept-tos set-license "$WARP_LICENSE"
else
warp-cli --accept-tos register
fi
fi
warp-cli set-mode proxy
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment