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

Fix when plugin an interface

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-09-26 21:29:28 +02:00
parent 5c60143939
commit 49fec5a730

View file

@ -367,7 +367,7 @@ start_service() {
config_foreach add_route route
config_foreach add_route route6
# If no master is defined, one interface is defined as master
if [ "$master" = "" ]; then
if [ "$master" = "" ] && [ "$intf" = "" ]; then
intfmaster="$(echo $mptcpintf | cut -d' ' -f1 | tr -d '\n')"
[ "$intfmaster" != "" ] && {
logger -t "MPTCP" "No master multipath defined, setting it to $intfmaster"