mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-02 22:43:56 +08:00
update 2026-07-01 22:23:49
This commit is contained in:
1 parent
c68aa3ad25
commit
a6d4625386
9 files changed
+195
-8
No files matched your search
@@ -1407,8 +1407,8 @@ function act_ping()
|
||||
iret = luci.sys.call("ipset add ss_spec_wan_ac " .. domain .. " 2>/dev/null") == 0
|
||||
end
|
||||
end
|
||||
-- Hysteria2 节点轻量 UDP 端口检测
|
||||
if proto:find("hysteria2") or type:find("hysteria2") then
|
||||
-- Hysteria2、TUIC 节点轻量 UDP 端口检测
|
||||
if proto:find("hysteria2") or type:find("hysteria2") or proto:find("tuic") or type:find("tuic") then
|
||||
local udp_cmd = string.format("nping --udp -c 1 -p %d %s 2>/dev/null", port, domain)
|
||||
local udp_raw = luci.sys.exec(udp_cmd) or ""
|
||||
local udp_rtt = udp_raw:match("Avg rtt:%s*([0-9.]+)ms")
|
||||
|
||||
Reference in new issue
Block a user