luci-app-shadowsocks-libev: support ss_redir disable_sni option
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
parent
317cfd0b4b
commit
5d91683575
2 changed files with 7 additions and 1 deletions
|
@ -24,6 +24,7 @@ s:tab("general", translate("General Settings"))
|
||||||
s:tab("advanced", translate("Advanced Settings"))
|
s:tab("advanced", translate("Advanced Settings"))
|
||||||
s:taboption("general", Flag, "disabled", translate("Disable"))
|
s:taboption("general", Flag, "disabled", translate("Disable"))
|
||||||
ss.option_install_package(s, "general")
|
ss.option_install_package(s, "general")
|
||||||
|
ss.options_common(s, "advanced")
|
||||||
|
|
||||||
if stype == "ss_server" then
|
if stype == "ss_server" then
|
||||||
ss.options_server(s, "general")
|
ss.options_server(s, "general")
|
||||||
|
@ -42,8 +43,11 @@ else
|
||||||
translate("Tunnel address"),
|
translate("Tunnel address"),
|
||||||
translate("The address ss-tunnel will forward traffic to"))
|
translate("The address ss-tunnel will forward traffic to"))
|
||||||
o.datatype = "hostport"
|
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
|
||||||
end
|
end
|
||||||
ss.options_common(s, "advanced")
|
|
||||||
|
|
||||||
return m
|
return m
|
||||||
|
|
|
@ -132,6 +132,8 @@ function cfgvalue_overview(sdata)
|
||||||
cfgvalue_overview_(sdata, lines, names_options_client)
|
cfgvalue_overview_(sdata, lines, names_options_client)
|
||||||
if stype == "ss_tunnel" then
|
if stype == "ss_tunnel" then
|
||||||
cfgvalue_overview_(sdata, lines, {"tunnel_address"})
|
cfgvalue_overview_(sdata, lines, {"tunnel_address"})
|
||||||
|
elseif stype == "ss_redir" then
|
||||||
|
cfgvalue_overview_(sdata, lines, {"disable_sni"})
|
||||||
end
|
end
|
||||||
cfgvalue_overview_(sdata, lines, names_options_common)
|
cfgvalue_overview_(sdata, lines, names_options_common)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue