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

fix mptcp

This commit is contained in:
suyuan 2021-03-05 19:32:16 +08:00
parent 48ecda6c45
commit af872c51ac
2 changed files with 1 additions and 1 deletions

0
mptcp/Makefile Executable file → Normal file
View file

View file

@ -189,7 +189,7 @@ interface_multipath_settings() {
gateway=$(ubus call network.interface.${config}_4 status 2>/dev/null | jsonfilter -q -l 1 -e '@.route[@.target="0.0.0.0"].nexthop' | tr -d "\n")
fi
if [ -z "$gateway" ] || [ "$( valid_subnet4 $gateway )" != "ok" ]; then
gateway=$(traceroute -m1 -i $iface 223.5.5.5 2>/dev/null | awk 'FNR==2{ print $2 }')
gateway=$(traceroute -m1 -i $iface 8.8.8.8 2>/dev/null | awk 'FNR==2{ print $2 }')
fi
network_get_subnet netmask $config
[ -n "$netmask" ] && [ "$(echo $netmask | grep '/')" != "" ] && netmask=""