Skip to content

Commit fc57b24

Browse files
authored
fix: correct Cloudflare API validation logic
fix: 修正 Cloudflare API 判断逻辑
1 parent 3194acc commit fc57b24

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sba.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
# 当前脚本版本号
4-
VERSION='1.1.7 (2025.12.11)'
4+
VERSION='1.1.7 (2026.04.28)'
55

66
# 各变量默认值,Github 反代加速代理,第一个为空相当于直连
77
GITHUB_PROXY=('' 'https://v6.gh-proxy.org/' 'https://gh-proxy.com/' 'https://hub.glowp.xyz/' 'https://proxy.vvvv.ee/' 'https://ghproxy.lvedong.eu.org/')
@@ -729,7 +729,7 @@ argo_variable() {
729729

730730
if [[ -n "$ARGO_DOMAIN" && -z "$ARGO_AUTH" ]]; then
731731
local a=5
732-
until [[ "$ARGO_AUTH" =~ TunnelSecret || "$ARGO_AUTH" =~ [A-Z0-9a-z=]{120,250}$ || "${#ARGO_AUTH}" = $ARGO_AUTH_LENGTH ]]; do
732+
until [[ "$ARGO_AUTH" =~ TunnelSecret || "$ARGO_AUTH" =~ [A-Z0-9a-z=]{120,250}$ || "${#ARGO_AUTH}" =~ ^[3-6][0-9]$ ]]; do
733733
((a--)) || true
734734
if [ "$a" = 0 ]; then
735735
error "\n $(text 3) \n"
@@ -2040,4 +2040,4 @@ check_dependencies
20402040
check_install
20412041
menu_setting
20422042

2043-
[ "$NONINTERACTIVE_INSTALL" = 'noninteractive_install' ] && ACTION[2] || menu
2043+
[ "$NONINTERACTIVE_INSTALL" = 'noninteractive_install' ] && ACTION[2] || menu

0 commit comments

Comments
 (0)