mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add net.ipv4.tcp_retries2 setting
This commit is contained in:
parent
939b7303d9
commit
fc0bb15373
3 changed files with 7 additions and 2 deletions
|
@ -666,6 +666,10 @@ function settings_add()
|
|||
local tcp_syn_retries = luci.http.formvalue("tcp_syn_retries")
|
||||
luci.sys.exec("sysctl -w net.ipv4.tcp_syn_retries=%s" % tcp_syn_retries)
|
||||
luci.sys.exec("sed -i 's:^net.ipv4.tcp_syn_retries=[0-9]*:net.ipv4.tcp_syn_retries=%s:' /etc/sysctl.d/zzz_openmptcprouter.conf" % tcp_syn_retries)
|
||||
|
||||
--local tcp_retries2 = luci.http.formvalue("tcp_retries2")
|
||||
--luci.sys.exec("sysctl -w net.ipv4.tcp_retries2=%s" % tcp_retries2)
|
||||
--luci.sys.exec("sed -i 's:^net.ipv4.tcp_retries2=[0-9]*:net.ipv4.tcp_retries2=%s:' /etc/sysctl.d/zzz_openmptcprouter.conf" % tcp_retries2)
|
||||
|
||||
-- Set tcp_fastopen
|
||||
local tcp_fastopen = luci.http.formvalue("tcp_fastopen")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue