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:
parent
48ecda6c45
commit
af872c51ac
2 changed files with 1 additions and 1 deletions
0
mptcp/Makefile
Executable file → Normal file
0
mptcp/Makefile
Executable file → Normal 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=""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue