Skip to content

Commit dc2e290

Browse files
authored
Merge pull request #1878 from zxlhhyccc/tuic
luci-app-ssr-plus: Add support for selecting firewall tools when iptables and nftables coexist.
2 parents 66e034a + e554c10 commit dc2e290

File tree

7 files changed

+365
-258
lines changed

7 files changed

+365
-258
lines changed

luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ if uci:get_first("shadowsocksr", 'global', 'netflix_enable', '0') == '1' then
8989
o.default = "0"
9090
end
9191

92+
-- [[ Use nftables/iptables ]]--
93+
o = s:option(ListValue, "prefer_nft", translate("Prefer firewall tools"))
94+
o.default = "1"
95+
o:value("0", "Iptables")
96+
o:value("1", "Nftables")
97+
9298
o = s:option(ListValue, "threads", translate("Multi Threads Option"))
9399
o:value("0", translate("Auto Threads"))
94100
o:value("1", translate("1 Thread"))

0 commit comments

Comments
 (0)