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

Fix previous multipath fix to remove if* interfaces

This commit is contained in:
Ycarus (Yannick Chabanois) 2023-09-05 12:45:02 +02:00
parent c67d378688
commit d4d03aee79

View file

@ -132,7 +132,7 @@ if [ -f /proc/sys/net/mptcp/mptcp_enabled ]; then
printf "0x%02x" $(($(($IFF^$(($IFF&$IFF_MASK))))|$FLAG)) > $FLAG_PATH
else
# Remove not needed if* interfaces in MPTCP
oldintfs=$(ip mptcp endpoint show | grep "dev eth" | awk '{ print $3 }')
oldintfs=$(ip mptcp endpoint show | grep "dev if" | awk '{ print $3 }')
[ -n "$oldintfs" ] && {
for oldintf in $oldintfs; do
ip mptcp endpoint delete id $oldintf 2>&1 >/dev/null