1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix disable fast open

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-09-29 19:34:01 +02:00
parent dffb81118b
commit 3dfe06fdc1

View file

@ -605,6 +605,7 @@ function settings_add()
end
luci.sys.exec("sysctl -w net.ipv4.tcp_fastopen=%s" % tcp_fastopen)
luci.sys.exec("sed -i 's:^net.ipv4.tcp_fastopen=[0-3]*:net.ipv4.tcp_fastopen=%s:' /etc/sysctl.d/zzz_openmptcprouter.conf" % tcp_fastopen)
ucic:set("openmptcprouter", "settings","disable_fastopen", disablefastopen)
-- Disable IPv6
local disable_ipv6 = luci.http.formvalue("enableipv6") or "1"