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

More log for MPTCP

This commit is contained in:
Ycarus (Yannick Chabanois) 2023-12-15 08:58:10 +01:00
parent 081d432ea4
commit e374f7cb2e

View file

@ -206,8 +206,9 @@ interface_multipath_settings() {
#echo "îface: $iface"
if [ "$(uci -q get openmptcprouter.settings.force_multipath)" != "0" ]; then
_logger -t "MPTCP" "Set $iface to $mode"
if [ "$mode" = "master" ]; then
multipath "$iface" "on"
multipath "$iface" "on"
else
multipath "$iface" "$mode"
fi
@ -428,7 +429,8 @@ set_multipath() {
exist=1
fi
done
[ "$exist" = "0" ] && {
[ "$exist" = "0" ] && [ -z "$(multipath $iface | grep deactivated)" ] && {
logger -t "MPTCP" "Disabling MPTCP on interface $iface not found in enabled multipath list"
multipath $iface off
}
done