From 5d916835752f83c53528cada375e3dd57c693483 Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Fri, 4 Aug 2017 22:28:44 +0800 Subject: luci-app-shadowsocks-libev: support ss_redir disable_sni option Signed-off-by: Yousong Zhou --- .../luasrc/model/cbi/shadowsocks-libev/instance-details.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'applications/luci-app-shadowsocks-libev/luasrc/model/cbi') diff --git a/applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev/instance-details.lua b/applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev/instance-details.lua index d9a61d0bf7..22f3106d03 100644 --- a/applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev/instance-details.lua +++ b/applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev/instance-details.lua @@ -24,6 +24,7 @@ s:tab("general", translate("General Settings")) s:tab("advanced", translate("Advanced Settings")) s:taboption("general", Flag, "disabled", translate("Disable")) ss.option_install_package(s, "general") +ss.options_common(s, "advanced") if stype == "ss_server" then ss.options_server(s, "general") @@ -42,8 +43,11 @@ else translate("Tunnel address"), translate("The address ss-tunnel will forward traffic to")) o.datatype = "hostport" + elseif stype == "ss_redir" then + o = s:taboption("advanced", Flag, "disable_sni", + translate("Disable SNI"), + translate("Disable parsing HTTP/HTTPS payload to find then resolve hostname at remote server")) end end -ss.options_common(s, "advanced") return m -- cgit v1.2.3