mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 18:41:51 +00:00
Add congestion help
This commit is contained in:
parent
31f3cce8ba
commit
e133cd9489
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ mtcpsch:value("redundant", translate("redundant"))
|
||||||
local mtcpsyn = s:option(Value, "mptcp_syn_retries", translate("Multipath TCP SYN retries"))
|
local mtcpsyn = s:option(Value, "mptcp_syn_retries", translate("Multipath TCP SYN retries"))
|
||||||
mtcpsyn.datatype = "uinteger"
|
mtcpsyn.datatype = "uinteger"
|
||||||
mtcpsyn.rmempty = false
|
mtcpsyn.rmempty = false
|
||||||
local congestion = s:option(ListValue, "congestion", translate("Congestion Control"))
|
local congestion = s:option(ListValue, "congestion", translate("Congestion Control"),translate("Default is bbr"))
|
||||||
local availablecong = sys.exec("sysctl net.ipv4.tcp_available_congestion_control | awk -F'= ' '{print $NF}'")
|
local availablecong = sys.exec("sysctl net.ipv4.tcp_available_congestion_control | awk -F'= ' '{print $NF}'")
|
||||||
for cong in string.gmatch(availablecong, "[^%s]+") do
|
for cong in string.gmatch(availablecong, "[^%s]+") do
|
||||||
congestion:value(cong, translate(cong))
|
congestion:value(cong, translate(cong))
|
||||||
|
|
Loading…
Reference in a new issue