mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Should add MPTCP support to v2ray...
This commit is contained in:
parent
6365cfcc80
commit
3959237a3d
1 changed files with 16 additions and 2 deletions
|
@ -1944,6 +1944,16 @@ clear_transparent_proxy() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
version_over_5_4() {
|
||||||
|
MAJOR_VERSION=$(uname -r | awk -F '.' '{print $1}')
|
||||||
|
MINOR_VERSION=$(uname -r | awk -F '.' '{print $2}')
|
||||||
|
if [ $MAJOR_VERSION -ge 5 ] && [ $MINOR_VERSION -gt 13 ] || [ $MAJOR_VERSION -gt 5 ] ; then
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
start_instance() {
|
start_instance() {
|
||||||
local section="$1"
|
local section="$1"
|
||||||
|
|
||||||
|
@ -2054,10 +2064,14 @@ start_instance() {
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
PROG="$NAME.$section"
|
||||||
|
|
||||||
TRANSPARENT_PROXY_EXPECTED=1
|
TRANSPARENT_PROXY_EXPECTED=1
|
||||||
|
if version_over_5_4; then
|
||||||
procd_open_instance "$NAME.$section"
|
PROG="mptcpize run ${PROG}"
|
||||||
|
fi
|
||||||
|
procd_open_instance "$PROG"
|
||||||
procd_set_param command "$v2ray_file"
|
procd_set_param command "$v2ray_file"
|
||||||
procd_append_param command run
|
procd_append_param command run
|
||||||
procd_append_param command -config "$temp_config"
|
procd_append_param command -config "$temp_config"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue