mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix low latency
This commit is contained in:
parent
b30a46b0cd
commit
8f1e17591f
1 changed files with 1 additions and 1 deletions
|
@ -719,7 +719,7 @@ function settings_add()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- Enable/disable no delay
|
-- Enable/disable no delay
|
||||||
local nodelay = luci.http.formvalue("enablenodelay") or "1"
|
local nodelay = luci.http.formvalue("enablenodelay") or "0"
|
||||||
ucic:set("openmptcprouter","settings","enable_nodelay",nodelay)
|
ucic:set("openmptcprouter","settings","enable_nodelay",nodelay)
|
||||||
luci.sys.exec("sysctl -w net.ipv4.tcp_low_latency=%s" % nodelay)
|
luci.sys.exec("sysctl -w net.ipv4.tcp_low_latency=%s" % nodelay)
|
||||||
luci.sys.exec("sed -i 's:^net.ipv4.tcp_low_latency=[0-9]*:net.ipv4.tcp_low_latency=%s:' /etc/sysctl.d/zzz_openmptcprouter.conf" % nodelay)
|
luci.sys.exec("sed -i 's:^net.ipv4.tcp_low_latency=[0-9]*:net.ipv4.tcp_low_latency=%s:' /etc/sysctl.d/zzz_openmptcprouter.conf" % nodelay)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue