mirror of
https://github.com/EvgenyNerush/easy-xray.git
synced 2024-11-24 01:25:32 +03:00
add udp to vless link
This commit is contained in:
parent
6c0478b8b5
commit
480dde97f4
2 changed files with 7 additions and 7 deletions
14
ex.sh
14
ex.sh
|
@ -174,17 +174,17 @@ or leave blank for simple default configuration:"
|
||||||
#
|
#
|
||||||
echo -e "Choose a fake site to mimic.
|
echo -e "Choose a fake site to mimic.
|
||||||
Better if it is quite popular and not blocked in your country:
|
Better if it is quite popular and not blocked in your country:
|
||||||
(1) www.youtube.com (default)
|
(1) duckduckgo.com (default)
|
||||||
(2) www.microsoft.com
|
(2) www.microsoft.com
|
||||||
(3) www.google.com
|
(3) www.google.com
|
||||||
(4) www.bing.com
|
(4) www.bing.com
|
||||||
(5) www.yahoo.com
|
(5) www.yahoo.com
|
||||||
(6) www.adobe.com
|
(6) www.adobe.com
|
||||||
(7) aws.amazon.com
|
(7) aws.amazon.com
|
||||||
(8) discord.com
|
(8) www.aliexpress.com
|
||||||
(9) your variant"
|
(9) your variant"
|
||||||
read number
|
read number
|
||||||
default_fake_site="www.youtube.com"
|
default_fake_site="duckduckgo.com"
|
||||||
if [ -v $number ]
|
if [ -v $number ]
|
||||||
then
|
then
|
||||||
fake_site=$default_fake_site
|
fake_site=$default_fake_site
|
||||||
|
@ -209,7 +209,7 @@ Better if it is quite popular and not blocked in your country:
|
||||||
fake_site="aws.amazon.com"
|
fake_site="aws.amazon.com"
|
||||||
elif [ $number -eq 8 ]
|
elif [ $number -eq 8 ]
|
||||||
then
|
then
|
||||||
fake_site="discord.com"
|
fake_site="www.aliexpress.com"
|
||||||
elif [ $number -eq 9 ]
|
elif [ $number -eq 9 ]
|
||||||
then
|
then
|
||||||
echo -e "type your variant:"
|
echo -e "type your variant:"
|
||||||
|
@ -243,7 +243,7 @@ Better if it is quite popular and not blocked in your country:
|
||||||
# config for nginx; `!` in sed allows not to escape special characters such as dot and plus sign
|
# config for nginx; `!` in sed allows not to escape special characters such as dot and plus sign
|
||||||
cat ./template_site4cdn.conf \
|
cat ./template_site4cdn.conf \
|
||||||
| sed "s!server_domain_name!${server_name4cdn}!" \
|
| sed "s!server_domain_name!${server_name4cdn}!" \
|
||||||
| sed "s!www.youtube.com!${fake_site}!" \
|
| sed "s!duckduckgo.com!${fake_site}!" \
|
||||||
| sed "s!your_service_name!${service_name}!" \
|
| sed "s!your_service_name!${service_name}!" \
|
||||||
> ./conf/site4cdn.conf
|
> ./conf/site4cdn.conf
|
||||||
cp ./conf/site4cdn.conf /etc/nginx/sites-enabled/
|
cp ./conf/site4cdn.conf /etc/nginx/sites-enabled/
|
||||||
|
@ -278,7 +278,7 @@ Better if it is quite popular and not blocked in your country:
|
||||||
\"id\": \"${id}\",
|
\"id\": \"${id}\",
|
||||||
\"email\": \"${email}\",
|
\"email\": \"${email}\",
|
||||||
\"encryption\": \"none\",
|
\"encryption\": \"none\",
|
||||||
\"flow\": \"xtls-rprx-vision\"
|
\"flow\": \"xtls-rprx-vision-udp443\"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -692,7 +692,7 @@ then
|
||||||
public_key=$(strip_quotes $(jq ".outbounds[0].streamSettings.realitySettings.publicKey" $conf_file))
|
public_key=$(strip_quotes $(jq ".outbounds[0].streamSettings.realitySettings.publicKey" $conf_file))
|
||||||
server_name=$(strip_quotes $(jq ".outbounds[0].streamSettings.realitySettings.serverName" $conf_file))
|
server_name=$(strip_quotes $(jq ".outbounds[0].streamSettings.realitySettings.serverName" $conf_file))
|
||||||
short_id=$(strip_quotes $(jq ".outbounds[0].streamSettings.realitySettings.shortId" $conf_file))
|
short_id=$(strip_quotes $(jq ".outbounds[0].streamSettings.realitySettings.shortId" $conf_file))
|
||||||
link="vless://${id}@${address}:${port}?fragment=&security=reality&encryption=none&pbk=${public_key}&fp=chrome&type=tcp&flow=xtls-rprx-vision&sni=${server_name}&sid=${short_id}#easy-xray+%F0%9F%97%BD"
|
link="vless://${id}@${address}:${port}?fragment=&security=reality&encryption=none&pbk=${public_key}&fp=chrome&type=tcp&flow=xtls-rprx-vision-udp443&sni=${server_name}&sid=${short_id}#easy-xray+%F0%9F%97%BD"
|
||||||
else # grpc config
|
else # grpc config
|
||||||
id=$(strip_quotes $(jq ".outbounds[0].settings.vnext[0].users[0].id" $conf_file))
|
id=$(strip_quotes $(jq ".outbounds[0].settings.vnext[0].users[0].id" $conf_file))
|
||||||
address=$(strip_quotes $(jq ".outbounds[0].settings.vnext[0].address" $conf_file))
|
address=$(strip_quotes $(jq ".outbounds[0].settings.vnext[0].address" $conf_file))
|
||||||
|
|
BIN
figs/cloudflare-records.png
Normal file
BIN
figs/cloudflare-records.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 40 KiB |
Loading…
Reference in a new issue