mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix Multipath to use all IPs
This commit is contained in:
parent
0db896540c
commit
9ab72fc773
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ else
|
|||
done
|
||||
}
|
||||
|
||||
ID=$(ip mptcp endpoint show | sort | grep -m 1 -E "dev $DEVICE " | awk '{print $3}')
|
||||
ID=$(ip mptcp endpoint show | sort | grep "dev $DEVICE " | awk '{print $3}')
|
||||
IFF=$(ip mptcp endpoint show | sort | grep -m 1 -E "dev $DEVICE " | awk '{print $4}')
|
||||
#IP=$(ip a show $DEVICE | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p')
|
||||
[ -f /usr/bin/jsonfilter ] && IP=$(ip -j a show $DEVICE | jsonfilter -e '@[0].addr_info[*].local')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue