summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-shadowsocks-libev
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2017-08-13 12:34:46 +0800
committerYousong Zhou <yszhou4tech@gmail.com>2017-08-13 12:36:59 +0800
commit0a2fa7b16f61f74cd6a9c3814e49ab237854765e (patch)
tree93b9b79b96c51e9038bc97265ab2ad8f126cf8fa /applications/luci-app-shadowsocks-libev
parentbe77667225991e5965afc549ae94a148ea4246e1 (diff)
luci-app-shadowsocks-libev: assume ss-redir has default mode tcp_only
This is in accordance with the current actual implementation of ss-redir. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'applications/luci-app-shadowsocks-libev')
-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)