mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-24 06:44:21 +00:00
Change MPTCP status only if interface have IP (#481)
This commit is contained in:
commit
d0a6a99593
1 changed files with 1 additions and 1 deletions
|
@ -418,7 +418,7 @@ interface_multipath_settings() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(uci -q get openmptcprouter.settings.force_multipath)" != "0" ]; then
|
if [ "$(uci -q get openmptcprouter.settings.force_multipath)" != "0" ] && [ -n "$(ip a show dev $iface | grep inet)" ]; then
|
||||||
if ([ "$mode" = "master" ] || [ "$mode" = "on" ]) && [ -z "$(multipath $iface | grep default)" ]; then
|
if ([ "$mode" = "master" ] || [ "$mode" = "on" ]) && [ -z "$(multipath $iface | grep default)" ]; then
|
||||||
logger -t "MPTCP" "Set $iface to $mode from $(multipath $iface)"
|
logger -t "MPTCP" "Set $iface to $mode from $(multipath $iface)"
|
||||||
multipath "$iface" "on"
|
multipath "$iface" "on"
|
||||||
|
|
Loading…
Reference in a new issue