mirror of
https://gitlab.com/fscarmen/warp.git
synced 2026-06-15 03:25:42 +08:00
Use Cloudflare official api to registe account.
Former-commit-id: 389a4f4f865b3cbf4045af0093178975a856b734
This commit is contained in:
+1
-1
@@ -607,7 +607,7 @@ registe_api() {
|
||||
((i++)) || true
|
||||
[ "$i" -gt "$j" ] && rm -f /opt/warp-go/warp.conf.tmp* && error " $(text_eval 50) "
|
||||
[ -n "$3" ] && hint " $(text_eval $3) "
|
||||
curl -sm8 -Lo /opt/warp-go/$REGISTE_FILE "https://api.zeroteam.top/warp?format=warp-go"
|
||||
# curl -sm8 -Lo /opt/warp-go/$REGISTE_FILE "https://api.zeroteam.top/warp?format=warp-go"
|
||||
if ! grep -sq 'PrivateKey' /opt/warp-go/$REGISTE_FILE; then
|
||||
unset CF_API_REGISTE API_DEVICE_ID API_ACCESS_TOKEN API_PRIVATEKEY API_TYPE
|
||||
rm -f /opt/warp-go/$REGISTE_FILE
|
||||
|
||||
Reference in New Issue
Block a user