forked from lauren12133/cc-toolbox
-
Notifications
You must be signed in to change notification settings - Fork 1
/
cf.sh
46 lines (43 loc) · 779 Bytes
/
cf.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
# 设置默认参数值
n=500
tl=200
tll=20
tp=8443
sl=1
url="https://cf.tsnb.eu.org"
# 解析命令行参数
while [[ $# -gt 0 ]]; do
case "$1" in
-n)
n="$2"
shift 2
;;
-tl)
tl="$2"
shift 2
;;
-tll)
tll="$2"
shift 2
;;
-tp)
tp="$2"
shift 2
;;
-sl)
sl="$2"
shift 2
;;
-url)
url="$2"
shift 2
;;
*)
echo "未知的选项: $1"
exit 1
;;
esac
done
# 运行 Cloudflare 命令
./CloudflareST -n "$n" -tl "$tl" -tll "$tll" -tp "$tp" -sl "$sl" -url "$url"