mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Display BBRv3 TCP Congestion Control as bbr3
This commit is contained in:
parent
69b24baa37
commit
ba8fe7b65e
1 changed files with 5 additions and 1 deletions
|
@ -60,7 +60,11 @@ end
|
||||||
o = s:option(ListValue, "congestion", translate("Congestion Control"),translate("Default is cubic"))
|
o = s:option(ListValue, "congestion", translate("Congestion Control"),translate("Default is cubic"))
|
||||||
local availablecong = sys.exec("sysctl -n net.ipv4.tcp_available_congestion_control | xargs -n1 | sort | xargs")
|
local availablecong = sys.exec("sysctl -n net.ipv4.tcp_available_congestion_control | xargs -n1 | sort | xargs")
|
||||||
for cong in string.gmatch(availablecong, "[^%s]+") do
|
for cong in string.gmatch(availablecong, "[^%s]+") do
|
||||||
o:value(cong, translate(cong))
|
if cong == "bbr" and string.match(availablecong, "bbr1") then
|
||||||
|
o:value(cong, "bbr3")
|
||||||
|
else
|
||||||
|
o:value(cong, cong)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- if tonumber(uname.release:sub(1,4)) >= 5.15 then
|
-- if tonumber(uname.release:sub(1,4)) >= 5.15 then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue