update 2025-04-12 20:24:08

This commit is contained in:
actions-user 2025-04-12 20:24:09 +08:00
parent 73e51ab3b7
commit f766d6ac3c
1 changed files with 3 additions and 2 deletions

View File

@ -334,6 +334,7 @@ o.default = "1"
-- [[ Enable Shadowsocks Plugin ]]--
o = s:option(Flag, "enable_plugin", translate("Enable Plugin"))
o.rmempty = true
o:depends("type", "ss")
o.default = "0"
-- Shadowsocks Plugin
@ -350,7 +351,7 @@ if is_finded("xray-plugin") then
end
o:value("custom", translate("Custom"))
o.rmempty = true
o:depends({type = "ss", enable_plugin = true})
o:depends({enable_plugin = true})
o = s:option(Value, "custom_plugin", translate("Custom Plugin Path"))
o.placeholder = "/path/to/custom-plugin"
@ -358,7 +359,7 @@ o:depends({plugin = "custom"})
o = s:option(Value, "plugin_opts", translate("Plugin Opts"))
o.rmempty = true
o:depends({type = "ss", enable_plugin = true})
o:depends({enable_plugin = true})
o = s:option(ListValue, "protocol", translate("Protocol"))
for _, v in ipairs(protocol) do