1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Merge pull request #343 from Ysurac/develop

sync
This commit is contained in:
suyuan 2023-08-12 11:13:19 +08:00 committed by GitHub
commit 9c971aed67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 147 additions and 21 deletions

View file

@ -73,6 +73,49 @@ if uname.release:sub(1,4) == "5.15" or uname.release:sub(1,1) == "6" then
o.default = 0
end
o = s:option(ListValue, "mptcp_disable_initial_config", translate("Initial MPTCP configuration"))
o:depends("mptcp_pm_type",1)
o:value("0", translate("enable"))
o:value("1", translate("disable"))
o.default = "0"
o = s:option(ListValue, "mptcp_force_multipath", translate("Force Multipath configuration"))
o:depends("mptcp_pm_type",1)
o:value("1", translate("enable"))
o:value("0", translate("disable"))
o.default = "1"
o = s:option(ListValue, "mptcpd_enable", translate("Enable MPTCPd"))
o:depends("mptcp_pm_type",1)
o:value("enable", translate("enable"))
o:value("disable", translate("disable"))
o.default = "disable"
o = s:option(DynamicList, "mptcpd_path_manager", translate("MPTCPd path managers"))
for dir in io.popen([[cd /usr/lib/mptcpd && ls -1 *.so | sed 's/.so//g']]):lines() do
o:value(dir, dir)
end
o:depends("mptcp_pm_type",1)
o = s:option(DynamicList, "mptcpd_plugins", translate("MPTCPd plugins"))
for dir in io.popen([[cd /usr/lib/mptcpd && ls -1 *.so | sed 's/.so//g']]):lines() do
o:value(dir, dir)
end
o:depends("mptcp_pm_type",1)
o = s:option(DynamicList, "mptcpd_addr_flags", translate("MPTCPd Address annoucement flags"))
o:value("subflow","subflow")
o:value("signal","signal")
o:value("backup","backup")
o:value("fullmesh","fullmesh")
o:depends("mptcp_pm_type",1)
o = s:option(DynamicList, "mptcpd_notify_flags", translate("MPTCPd Address notification flags"))
o:value("existing","existing")
o:value("skip_link_local","skip_link_local")
o:value("skip_loopback","skip_loopback")
o:depends("mptcp_pm_type",1)
o = s:option(Value, "mptcp_subflows", translate("Max subflows"),translate("specifies the maximum number of additional subflows allowed for each MPTCP connection"))
o.datatype = "uinteger"
o.rmempty = false