Skip to content

Commit

Permalink
feat: add custom CLOUDFLARE_WARP_TUNNEL_ENDPOINT 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 61d23fb commit 94d5a9e
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 @@ -12,5 +12,6 @@ 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}"
[[ -n "${CLOUDFLARE_WARP_TUNNEL_ENDPOINT}" ]] && /usr/bin/warp-cli --accept-tos tunnel endpoint set "${CLOUDFLARE_WARP_TUNNEL_ENDPOINT}"
/usr/bin/warp-cli --accept-tos connect
while [[ ! -d /sys/class/net/CloudflareWARP ]]; do sleep 0.1; done

0 comments on commit 94d5a9e

Please sign in to comment.