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

Set MPTCP syn retrie to 2

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-04-02 20:23:05 +02:00
parent 881b5c945d
commit 11107d80d2

View file

@ -7,7 +7,7 @@ if [ "$(uci -q show network.globals | grep mptcp_path_manager)" = "" ]; then
set network.globals.congestion='bbr'
set network.globals.mptcp_checksum=0
set network.globals.mptcp_debug=0
set network.globals.mptcp_syn_retries=1
set network.globals.mptcp_syn_retries=2
commit network
EOF
fi
@ -17,9 +17,9 @@ if [ "$(uci -q get network.globals.congestion)" != "bbr" ]; then
commit network
EOF
fi
if [ "$(uci -q get network.globals.mptcp_syn_retries)" != "1" ]; then
if [ "$(uci -q get network.globals.mptcp_syn_retries)" = "1" ]; then
uci -q batch <<-EOF >/dev/null
set network.globals.mptcp_syn_retries=1
set network.globals.mptcp_syn_retries=2
commit network
EOF
fi