Update On Sun Jan 5 19:31:32 CET 2025

This commit is contained in:
github-action[bot]
2025-01-05 19:31:32 +01:00
parent 07c63fb97d
commit e55a32574e
1264 changed files with 298159 additions and 322 deletions
@@ -291,7 +291,7 @@ function connect_status()
local socks_server = api.get_cache_var("GLOBAL_TCP_SOCKS_server")
-- 兼容 curl 8.6 time_starttransfer 错误
local curl_ver = luci.sys.exec("curl -V 2>/dev/null | head -n 1 | awk '{print $2}' | cut -d. -f1,2") or "0"
local curl_ver = luci.sys.exec("curl -V 2>/dev/null | head -n 1 | awk '{print $2}' | cut -d. -f1,2 | tr -d ' \n'") or "0"
url = (curl_ver == "8.6") and "-w %{http_code}:%{time_appconnect} https://" .. url
or "-w %{http_code}:%{time_starttransfer} http://" .. url