From 49fec5a730b192e297e1c77c5e3def1c79f0b1a2 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Thu, 26 Sep 2019 21:29:28 +0200 Subject: [PATCH] Fix when plugin an interface --- mptcp/files/etc/init.d/mptcp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mptcp/files/etc/init.d/mptcp b/mptcp/files/etc/init.d/mptcp index 079cf3c57..a0cffc299 100755 --- a/mptcp/files/etc/init.d/mptcp +++ b/mptcp/files/etc/init.d/mptcp @@ -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"