summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2019-05-06 15:16:59 +0000
committerYousong Zhou <yszhou4tech@gmail.com>2019-05-06 15:23:20 +0000
commit263dc01f039949a598a3ac92ab8d37a22bc1b016 (patch)
tree4b0475e8c62579ffff76a10b97905b976e9a3190 /applications
parente9232f61135944dc002790f7b9becf957b083d0d (diff)
luci-app-shadowsocks-libev: allow setting plugin options
Reference: https://github.com/openwrt/packages/issues/8903 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua4
1 files changed, 4 insertions, 0 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 b74b54e7d..a3c9ed16b 100644
--- a/applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua
+++ b/applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua
@@ -117,6 +117,8 @@ function options_common(s, tab)
o.datatype = "uinteger"
o = s:taboption(tab, Value, "timeout", translate("Timeout (sec)"))
o.datatype = "uinteger"
+ s:taboption(tab, Value, "plugin", translate("Plugin"))
+ s:taboption(tab, Value, "plugin_opts", translate("Plugin Options"))
s:taboption(tab, Value, "user", translate("Run as"))
s:taboption(tab, Flag, "verbose", translate("Verbose"))
@@ -228,6 +230,8 @@ names_options_common = {
"mode",
"mtu",
"timeout",
+ "plugin",
+ "plugin_opts",
"user",
}