summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2017-08-13 19:47:25 +0300
committerGitHub <noreply@github.com>2017-08-13 19:47:25 +0300
commit0ee6b1c8f76fb9b0dd8d82a3e4e3c48e51c21ef7 (patch)
tree484e8da704d0fc1f5c6ff5ce1e933a5243601759 /applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua
parent5b8a7652af6877e668badd976f84d030832f1b88 (diff)
parent0a2fa7b16f61f74cd6a9c3814e49ab237854765e (diff)
Merge pull request #1301 from yousong/shadowsocks-libev
luci-app-shadowsocks-libev: minor adaption for ease of use
Diffstat (limited to 'applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua')
-rw-r--r--applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua b/applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua
index 0a14f33554..6608ee8d35 100644
--- a/applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua
+++ b/applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua
@@ -22,7 +22,7 @@ end
function values_redir(o, xmode)
o.map.uci.foreach("shadowsocks-libev", "ss_redir", function(sdata)
local sname = sdata[".name"]
- local mode = sdata["mode"]
+ local mode = sdata["mode"] or "tcp_only"
if mode and mode:find(xmode) then
local desc = "%s - %s" % {sname, mode}
o:value(sname, desc)