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

Add V2Ray Socks Protocol support

This commit is contained in:
Ycarus (Yannick Chabanois) 2023-08-25 15:39:34 +02:00
parent a8387400ba
commit 1e70503fe0
5 changed files with 76 additions and 33 deletions

View file

@ -52,6 +52,12 @@ if [ -z "$(uci -q get v2ray.main)" ]; then
set v2ray.omrout.s_trojan_user_security='none'
set v2ray.omrout.s_trojan_user_encryption='none'
set v2ray.omrout.s_trojan_user_alter_id='0'
set v2ray.omrout.s_socks_address=''
set v2ray.omrout.s_socks_port='65229'
set v2ray.omrout.s_socks_user_id=''
set v2ray.omrout.s_socks_user_security='none'
set v2ray.omrout.s_socks_user_encryption='none'
set v2ray.omrout.s_socks_user_alter_id='0'
set v2ray.omrout.ss_network='tcp'
set v2ray.omrout.ss_security='tls'
set v2ray.omrout.ss_tls_allow_insecure='1'
@ -179,6 +185,17 @@ if [ "$(uci -q get v2ray.omrout.s_trojan_port)" = "" ]; then
commit v2ray
EOF
fi
if [ "$(uci -q get v2ray.omrout.s_socks_port)" = "" ]; then
uci -q batch <<-EOF >/dev/null
set v2ray.omrout.s_socks_address=''
set v2ray.omrout.s_socks_port='65229'
set v2ray.omrout.s_socks_user_id=''
set v2ray.omrout.s_socks_user_security='none'
set v2ray.omrout.s_socks_user_encryption='none'
set v2ray.omrout.s_socks_user_alter_id='0'
commit v2ray
EOF
fi
fi
exit 0