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

Add XRay VLESS REALITY protocol support

This commit is contained in:
Ycarus (Yannick Chabanois) 2023-10-17 17:35:03 +02:00
parent c52f081647
commit 8369094924
5 changed files with 119 additions and 14 deletions

View file

@ -36,24 +36,24 @@ if [ -z "$(uci -q get xray.main)" ]; then
set xray.omrout.tag='omrout_tunnel'
set xray.omrout.protocol='vless'
set xray.omrout.s_vmess_address=''
set xray.omrout.s_vmess_port='65230'
set xray.omrout.s_vmess_port='65250'
set xray.omrout.s_vmess_user_id=''
set xray.omrout.s_vmess_user_security='none'
set xray.omrout.s_vmess_user_alter_id='0'
set xray.omrout.s_vless_address=''
set xray.omrout.s_vless_port='65228'
set xray.omrout.s_vless_port='65248'
set xray.omrout.s_vless_user_id=''
set xray.omrout.s_vless_user_security='none'
set xray.omrout.s_vless_user_encryption='none'
set xray.omrout.s_vless_user_alter_id='0'
set xray.omrout.s_trojan_address=''
set xray.omrout.s_trojan_port='65229'
set xray.omrout.s_trojan_port='65249'
set xray.omrout.s_trojan_user_id=''
set xray.omrout.s_trojan_user_security='none'
set xray.omrout.s_trojan_user_encryption='none'
set xray.omrout.s_trojan_user_alter_id='0'
set xray.omrout.s_socks_address=''
set xray.omrout.s_socks_port='65231'
set xray.omrout.s_socks_port='65251'
set xray.omrout.s_socks_user_id=''
set xray.omrout.s_socks_user_security='none'
set xray.omrout.s_socks_user_encryption='none'
@ -170,9 +170,9 @@ if [ "$(uci -q get xray.policy_level_0.conn_idle)" = "2400" ]; then
EOF
fi
if [ "$(uci -q get xray.omrout.s_vmess_port)" = "65228" ]; then
if [ "$(uci -q get xray.omrout.s_vmess_port)" = "65230" ]; then
uci -q batch <<-EOF >/dev/null
set xray.omrout.s_vmess_port='65230'
set xray.omrout.s_vmess_port='65250'
commit xray
EOF
fi
@ -180,7 +180,7 @@ fi
if [ "$(uci -q get xray.omrout.s_trojan_port)" = "" ]; then
uci -q batch <<-EOF >/dev/null
set xray.omrout.s_trojan_address=''
set xray.omrout.s_trojan_port='65229'
set xray.omrout.s_trojan_port='65249'
set xray.omrout.s_trojan_user_id=''
set xray.omrout.s_trojan_user_security='none'
set xray.omrout.s_trojan_user_encryption='none'
@ -191,7 +191,7 @@ fi
if [ "$(uci -q get xray.omrout.s_socks_port)" = "" ]; then
uci -q batch <<-EOF >/dev/null
set xray.omrout.s_socks_address=''
set xray.omrout.s_socks_port='65231'
set xray.omrout.s_socks_port='65251'
set xray.omrout.s_socks_user_id=''
set xray.omrout.s_socks_user_security='none'
set xray.omrout.s_socks_user_encryption='none'
@ -199,6 +199,25 @@ if [ "$(uci -q get xray.omrout.s_socks_port)" = "" ]; then
commit xray
EOF
fi
if [ "$(uci -q get xray.omrout.s_shadowsocks_port)" = "" ]; then
uci -q batch <<-EOF >/dev/null
set xray.omrout.s_shadowsocks_address=''
set xray.omrout.s_shadowsocks_port='65252'
commit xray
EOF
fi
if [ "$(uci -q get xray.omrout.s_vless_reality_port)" = "" ]; then
uci -q batch <<-EOF >/dev/null
set xray.omrout.s_vless_reality_address=''
set xray.omrout.s_vless_reality_port='443'
set xray.omrout.s_vless_reality_flow='xtls-rprx-vision'
set xray.omrout.s_vless_reality_user_id=''
set xray.omrout.s_vless_reality_user_security='none'
set xray.omrout.s_vless_reality_user_encryption='none'
set xray.omrout.s_vless_reality_user_alter_id='0'
commit xray
EOF
fi
if [ "$(uci -q get xray.omrout.ss_sockopt_mptcp)" = "" ]; then
uci -q batch <<-EOF >/dev/null