onlyrickroll commited on
Commit
da0b3ce
·
verified ·
1 Parent(s): b6db259

Update test.sh

Browse files
Files changed (1) hide show
  1. test.sh +1 -1
test.sh CHANGED
@@ -16,7 +16,7 @@ while read -r line; do
16
  PROXY="$line"
17
  echo -n "测试 $PROXY ... "
18
  # 使用 curl 测试,设置 3 秒连接超时
19
- if curl -i -x "$line" --connect-timeout 8 https://api.telegram.org > /dev/null; then
20
  echo "✅ 成功!"
21
  FINAL_PROXY="$PROXY"
22
  break
 
16
  PROXY="$line"
17
  echo -n "测试 $PROXY ... "
18
  # 使用 curl 测试,设置 3 秒连接超时
19
+ if curl -I -x "$line" --connect-timeout 8 https://api.telegram.org > /dev/null; then
20
  echo "✅ 成功!"
21
  FINAL_PROXY="$PROXY"
22
  break