mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-13 02:51:50 +00:00
Fix MPTCP reload on metric for IPv6
This commit is contained in:
parent
ee12f0f05d
commit
8e5a8f8694
1 changed files with 1 additions and 1 deletions
|
@ -1061,7 +1061,7 @@ fi
|
||||||
|
|
||||||
if [ -n "$OMR_TRACKER_INTERFACE" ] && [ -n "$OMR_TRACKER_DEVICE" ]; then
|
if [ -n "$OMR_TRACKER_INTERFACE" ] && [ -n "$OMR_TRACKER_DEVICE" ]; then
|
||||||
metric="$(uci -q get network.$OMR_TRACKER_INTERFACE.metric)"
|
metric="$(uci -q get network.$OMR_TRACKER_INTERFACE.metric)"
|
||||||
if [ -z "$metric" ] || [ -z "$(ip route show table $metric | grep $OMR_TRACKER_DEVICE)" ]; then
|
if [ -z "$metric" ] || ([ -n "$OMR_TRACKER_DEVICE_IP" ] && [ -z "$(ip route show table $metric | grep $OMR_TRACKER_DEVICE)" ]) || ([ -n "$OMR_TRACKER_DEVICE_IP6" ] && [ -z "$(ip -6 route show table $metric | grep $OMR_TRACKER_DEVICE)" ]); then
|
||||||
/etc/init.d/mptcp reload "$OMR_TRACKER_DEVICE"
|
/etc/init.d/mptcp reload "$OMR_TRACKER_DEVICE"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue