Skip to content

Commit

Permalink
feat: add custom CLOUDFLARE_WARP_MODE support
Browse files Browse the repository at this point in the history
Signed-off-by: Aofei Sheng <aofei@aofeisheng.com>
  • Loading branch information
aofei committed Oct 19, 2024
1 parent 8fccf71 commit 51ba0ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rootfs/etc/services.d/cloudflare-warp/data/check
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ check_exit_code() {
trap check_exit_code EXIT
while [[ ! -S /run/cloudflare-warp/warp_service ]]; do sleep 0.1; done
while [[ ! -f /var/lib/cloudflare-warp/reg.json ]]; do /usr/bin/warp-cli --accept-tos registration new || sleep 5; done
/usr/bin/warp-cli --accept-tos mode "${CLOUDFLARE_WARP_MODE:-warp}"
/usr/bin/warp-cli --accept-tos tunnel protocol set "${CLOUDFLARE_WARP_TUNNEL_PROTOCOL:-MASQUE}"
/usr/bin/warp-cli --accept-tos connect
while [[ ! -d /sys/class/net/CloudflareWARP ]]; do sleep 0.1; done

0 comments on commit 51ba0ed

Please sign in to comment.