From 263dc01f039949a598a3ac92ab8d37a22bc1b016 Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Mon, 6 May 2019 15:16:59 +0000 Subject: [PATCH] luci-app-shadowsocks-libev: allow setting plugin options Reference: https://github.com/openwrt/packages/issues/8903 Signed-off-by: Yousong Zhou --- .../luasrc/model/shadowsocks-libev.lua | 4 ++++ 1 file changed, 4 insertions(+) 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", } -- 2.25.1