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:
parent
c52f081647
commit
8369094924
5 changed files with 119 additions and 14 deletions
|
@ -716,12 +716,14 @@ function wizard_add()
|
|||
local sectionname = s[".name"]
|
||||
ucic:set("shadowsocks-rust",sectionname,"disabled","1")
|
||||
end)
|
||||
elseif (default_proxy == "xray" or default_proxy == "xray-vmess" or default_proxy == "xray-trojan" or default_proxy == "xray-shadowsocks" or default_proxy == "xray-socks") and serversnb > 0 and serversnb > disablednb then
|
||||
elseif (default_proxy == "xray" or default_proxy == "xray-vless-reality" or default_proxy == "xray-vmess" or default_proxy == "xray-trojan" or default_proxy == "xray-shadowsocks" or default_proxy == "xray-socks") and serversnb > 0 and serversnb > disablednb then
|
||||
--ucic:set("shadowsocks-libev","sss0","disabled","1")
|
||||
ucic:set("v2ray","main","enabled","0")
|
||||
ucic:set("xray","main","enabled","1")
|
||||
if default_proxy == "xray" then
|
||||
ucic:set("xray","omrout","protocol","vless")
|
||||
elseif default_proxy == "xray-vless-reality" then
|
||||
ucic:set("xray","omrout","protocol","vless-reality")
|
||||
elseif default_proxy == "xray-vmess" then
|
||||
ucic:set("xray","omrout","protocol","vmess")
|
||||
elseif default_proxy == "xray-trojan" then
|
||||
|
@ -800,6 +802,7 @@ function wizard_add()
|
|||
ucic:set("v2ray","omrout","s_socks_address",server_ip)
|
||||
ucic:set("xray","omrout","s_vmess_address",server_ip)
|
||||
ucic:set("xray","omrout","s_vless_address",server_ip)
|
||||
ucic:set("xray","omrout","s_vless_reality_address",server_ip)
|
||||
ucic:set("xray","omrout","s_trojan_address",server_ip)
|
||||
ucic:set("xray","omrout","s_socks_address",server_ip)
|
||||
ucic:set("xray","omrout","s_shadowsocks_address",server_ip)
|
||||
|
@ -845,6 +848,7 @@ function wizard_add()
|
|||
ucic:set("v2ray","omrout","s_socks_address",server_ip)
|
||||
ucic:set("xray","omrout","s_vmess_address",server_ip)
|
||||
ucic:set("xray","omrout","s_vless_address",server_ip)
|
||||
ucic:set("xray","omrout","s_vless_reality_address",server_ip)
|
||||
ucic:set("xray","omrout","s_trojan_address",server_ip)
|
||||
ucic:set("xray","omrout","s_socks_address",server_ip)
|
||||
ucic:set("xray","omrout","s_shadowsocks_address",server_ip)
|
||||
|
@ -906,6 +910,7 @@ function wizard_add()
|
|||
ucic:set("v2ray","omrout","s_socks_user_security","none")
|
||||
ucic:set("xray","omrout","s_vmess_user_security","none")
|
||||
ucic:set("xray","omrout","s_vless_user_security","none")
|
||||
ucic:set("xray","omrout","s_vless_reality_user_security","none")
|
||||
ucic:set("xray","omrout","s_trojan_user_security","none")
|
||||
ucic:set("xray","omrout","s_socks_user_security","none")
|
||||
ucic:set("xray","omrout","s_shadowsocks_method","none")
|
||||
|
@ -923,6 +928,7 @@ function wizard_add()
|
|||
ucic:set("v2ray","omrout","s_socks_user_security","aes-128-gcm")
|
||||
ucic:set("xray","omrout","s_vmess_user_security","aes-128-gcm")
|
||||
ucic:set("xray","omrout","s_vless_user_security","aes-128-gcm")
|
||||
ucic:set("xray","omrout","s_vless_reality_user_security","aes-128-gcm")
|
||||
ucic:set("xray","omrout","s_trojan_user_security","aes-128-gcm")
|
||||
ucic:set("xray","omrout","s_socks_user_security","aes-128-gcm")
|
||||
ucic:set("xray","omrout","s_shadowsocks_method","2022-blake3-aes-256-gcm")
|
||||
|
@ -942,6 +948,7 @@ function wizard_add()
|
|||
ucic:set("v2ray","omrout","s_socks_user_security","aes-128-gcm")
|
||||
ucic:set("xray","omrout","s_vmess_user_security","aes-128-gcm")
|
||||
ucic:set("xray","omrout","s_vless_user_security","aes-128-gcm")
|
||||
ucic:set("xray","omrout","s_vless_reality_user_security","aes-128-gcm")
|
||||
ucic:set("xray","omrout","s_trojan_user_security","aes-128-gcm")
|
||||
ucic:set("xray","omrout","s_socks_user_security","aes-128-gcm")
|
||||
ucic:set("xray","omrout","s_shadowsocks_method","2022-blake3-aes-256-gcm")
|
||||
|
@ -961,6 +968,7 @@ function wizard_add()
|
|||
ucic:set("v2ray","omrout","s_socks_user_security","chacha20-poly1305")
|
||||
ucic:set("xray","omrout","s_vmess_user_security","chacha20-poly1305")
|
||||
ucic:set("xray","omrout","s_vless_user_security","chacha20-poly1305")
|
||||
ucic:set("xray","omrout","s_vless_reality_user_security","chacha20-poly1305")
|
||||
ucic:set("xray","omrout","s_trojan_user_security","chacha20-poly1305")
|
||||
ucic:set("xray","omrout","s_socks_user_security","chacha20-poly1305")
|
||||
ucic:set("xray","omrout","s_shadowsocks_method","2022-blake3-chacha20-poly1305")
|
||||
|
@ -1040,6 +1048,7 @@ function wizard_add()
|
|||
ucic:commit("v2ray")
|
||||
ucic:set("xray","omrout","s_vmess_user_id",v2ray_user)
|
||||
ucic:set("xray","omrout","s_vless_user_id",v2ray_user)
|
||||
ucic:set("xray","omrout","s_vless_reality_user_id",v2ray_user)
|
||||
ucic:set("xray","omrout","s_trojan_user_id",v2ray_user)
|
||||
ucic:set("xray","omrout","s_socks_user_id",v2ray_user)
|
||||
ucic:save("xray")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue