mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Clean code
This commit is contained in:
parent
d4e7a680f1
commit
dc18217c8e
9 changed files with 25 additions and 25 deletions
|
@ -8,8 +8,10 @@ timeout="$(uci -q get openmptcprouter.settings.status_vps_timeout)"
|
|||
[ -z "$intf" ] && return
|
||||
|
||||
get_mptcp_from_server() {
|
||||
[ -n "$support" ] && return
|
||||
serverport=$(uci -q get openmptcprouter.$1.port)
|
||||
get_mptcp() {
|
||||
[ -n "$support" ] && return
|
||||
serverip=$1
|
||||
if [ "$(echo $serverip | grep :)" ]; then
|
||||
if [ -f /proc/sys/net/mptcp/enabled ]; then
|
||||
|
@ -26,11 +28,10 @@ get_mptcp_from_server() {
|
|||
fi
|
||||
[ -n "$support" ] && {
|
||||
support=$(echo $support | jsonfilter -e '@.mptcp')
|
||||
break
|
||||
return
|
||||
}
|
||||
}
|
||||
config_list_foreach $1 ip get_mptcp
|
||||
[ -n "$support" ] && break
|
||||
}
|
||||
|
||||
get_mptcpv0_from_website() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue