From ba8fe7b65e797894ffec27c241315b077a0f0216 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Thu, 7 Sep 2023 14:16:38 +0200 Subject: [PATCH] Display BBRv3 TCP Congestion Control as bbr3 --- luci-app-mptcp/luasrc/model/cbi/mptcp.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/luci-app-mptcp/luasrc/model/cbi/mptcp.lua b/luci-app-mptcp/luasrc/model/cbi/mptcp.lua index 53fba62e8..c4756ad65 100644 --- a/luci-app-mptcp/luasrc/model/cbi/mptcp.lua +++ b/luci-app-mptcp/luasrc/model/cbi/mptcp.lua @@ -60,7 +60,11 @@ end 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") 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 -- if tonumber(uname.release:sub(1,4)) >= 5.15 then