diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2017-07-24 14:57:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-24 14:57:07 +0300 |
commit | 844a741e7ea29dc460249774c35c34b20c463877 (patch) | |
tree | c59926b38796b9b85e5ea060fd358b65fa81531f /applications/luci-app-shadowsocks-libev/luasrc/model | |
parent | 3f0aead2eab34254e6688d49c69d6b9c63dcfecd (diff) | |
parent | 06ad394dde572878c2a573e8ef81b94ae706b5d5 (diff) |
Merge pull request #1249 from yousong/shadowsocks-libev
luci-app-shadowsocks-libev: auto update instance running state
Diffstat (limited to 'applications/luci-app-shadowsocks-libev/luasrc/model')
-rw-r--r-- | applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev/instances.lua | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev/instances.lua b/applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev/instances.lua index 15e57df6bd..62a90fb416 100644 --- a/applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev/instances.lua +++ b/applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev/instances.lua @@ -15,19 +15,10 @@ m = Map("shadowsocks-libev", local instances = {} local cfgtypes = { "ss_local", "ss_redir", "ss_server", "ss_tunnel" } -local instances_data = ut.ubus("service", "list", {name = "shadowsocks-libev"})["shadowsocks-libev"] -if instances_data ~= nil then - instances_data = instances_data["instances"] -end for sname, sdata in pairs(m:get()) do local key, value = ss.cfgvalue_overview(sdata) if key ~= nil then - if instances_data and instances_data[key] and instances_data[key]["running"] then - value["running"] = "yes" - else - value["running"] = "no" - end instances[key] = value end end |