luci-app-shadowsocks-libev: remove option manager_address
[project/luci.git] / applications / luci-app-shadowsocks-libev / luasrc / model / cbi / shadowsocks-libev / instance-details.lua
index d9a61d0..19f5ddc 100644 (file)
@@ -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")
 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")
 
 if stype == "ss_server" then
        ss.options_server(s, "general")
@@ -33,8 +34,6 @@ if stype == "ss_server" then
        o.datatype = "ipaddr"
        o.placeholder = "0.0.0.0"
        ss.values_ipaddr(o)
        o.datatype = "ipaddr"
        o.placeholder = "0.0.0.0"
        ss.values_ipaddr(o)
-       o = s:taboption("general", Value, "manager_address", translate("Manager address"))
-       o.datatype = "hostport"
 else
        ss.options_client(s, "general")
        if stype == "ss_tunnel" then
 else
        ss.options_client(s, "general")
        if stype == "ss_tunnel" then
@@ -42,8 +41,11 @@ else
                        translate("Tunnel address"),
                        translate("The address ss-tunnel will forward traffic to"))
                o.datatype = "hostport"
                        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
        end
 end
-ss.options_common(s, "advanced")
 
 return m
 
 return m