Compare commits

...

3 Commits

Author SHA1 Message Date
github-actions[bot]
29226d0e33 update 2025-04-18 03:12:19 2025-04-18 03:12:19 +08:00
Ing
b63ddabe95 更新 synowebapi 命令,添加版本参数 2025-04-18 03:04:46 +08:00
Ing
6c76070b38 优化 curl 命令,增加连接超时设置 2025-04-18 03:04:35 +08:00
5 changed files with 5 additions and 5 deletions

View File

@ -1 +1 @@
25.4.0
25.4.1

View File

@ -8,7 +8,7 @@
# shellcheck disable=SC2034
RR_VERSION="25.4.0"
RR_VERSION="25.4.1"
RR_RELEASE=""
RR_TITLE="RR v${RR_VERSION}"

View File

@ -224,7 +224,7 @@ function _get_fastest() {
done
else
for I in "$@"; do
speed=$(curl -skL -w '%{time_total}' "${I}" -o /dev/null)
speed=$(curl -skL -m 10 --connect-timeout 10 -w '%{time_total}' "${I}" -o /dev/null)
speed=$(awk "BEGIN {print (${speed:-0.999} * 1000)}")
speedlist+="${I} ${speed:-999}\n" # Assign default value 999 if speed is empty
done

View File

@ -1 +1 @@
25.4.0
25.4.1

View File

@ -333,7 +333,7 @@
# API
# 获取系统信息
synowebapi --exec api=SYNO.Core.System method=info
synowebapi --exec api=SYNO.Core.System method=info version=1
# 获取设备信息
synowebapi --exec api=SYNO.Core.System.Utilization method=get version=1
# 关闭 自动 https 重定向