luci-app-speederv2: fix bin check

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
This commit is contained in:
hue715 2021-01-21 23:52:56 +08:00 committed by CN_SZTL
parent 38d81ee457
commit e392642bdd
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -6,7 +6,7 @@ local function has_bin(name)
return luci.sys.call("command -v %s >/dev/null" %{name}) == 0
end
if has_bin("speederv2") then
if has_bin("udpspeeder") then
uci:foreach("speederv2", "servers", function(s)
if s.server_port and s.listen_port then
servers[#servers+1] = {name = s[".name"], alias = s.alias or "%s:%s" %{s.server_port, s.listen_port}}