luci-app-shadowsocks-libev: allow setting plugin options
authorYousong Zhou <yszhou4tech@gmail.com>
Mon, 6 May 2019 15:16:59 +0000 (15:16 +0000)
committerYousong Zhou <yszhou4tech@gmail.com>
Mon, 6 May 2019 15:23:20 +0000 (15:23 +0000)
Reference: https://github.com/openwrt/packages/issues/8903
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua

index b74b54e7d180e1d43dcfe606120ed86ee38d5b10..a3c9ed16bf3e4c31bfaf4e38b2e931ad5e02c6e1 100644 (file)
@@ -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",
 }