|
|
@ -10,7 +10,7 @@ none='\e[0m' |
|
|
|
# Root |
|
|
|
# Root |
|
|
|
[[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1 |
|
|
|
[[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1 |
|
|
|
|
|
|
|
|
|
|
|
_version="v2.14" |
|
|
|
_version="v2.15" |
|
|
|
|
|
|
|
|
|
|
|
cmd="apt-get" |
|
|
|
cmd="apt-get" |
|
|
|
|
|
|
|
|
|
|
@ -127,9 +127,9 @@ ciphers=( |
|
|
|
get_transport_args() { |
|
|
|
get_transport_args() { |
|
|
|
header="none" |
|
|
|
header="none" |
|
|
|
if [[ $is_path ]]; then |
|
|
|
if [[ $is_path ]]; then |
|
|
|
host=$domain |
|
|
|
_path="/$path" |
|
|
|
else |
|
|
|
else |
|
|
|
host="" |
|
|
|
_path="/" |
|
|
|
fi |
|
|
|
fi |
|
|
|
case $v2ray_transport in |
|
|
|
case $v2ray_transport in |
|
|
|
1 | 9) |
|
|
|
1 | 9) |
|
|
@ -189,8 +189,8 @@ create_vmess_URL_config() { |
|
|
|
"aid": "${alterId}", |
|
|
|
"aid": "${alterId}", |
|
|
|
"net": "${net}", |
|
|
|
"net": "${net}", |
|
|
|
"type": "none", |
|
|
|
"type": "none", |
|
|
|
"host": "${host}", |
|
|
|
"host": "${domain}", |
|
|
|
"path": "/$path", |
|
|
|
"path": "$_path", |
|
|
|
"tls": "tls" |
|
|
|
"tls": "tls" |
|
|
|
} |
|
|
|
} |
|
|
|
EOF |
|
|
|
EOF |
|
|
@ -240,10 +240,8 @@ view_v2ray_config_info() { |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo -e "$yellow 伪装域名 (host) = ${cyan}${host}$none" |
|
|
|
echo -e "$yellow 伪装域名 (host) = ${cyan}${host}$none" |
|
|
|
echo |
|
|
|
echo |
|
|
|
if [[ $is_path ]]; then |
|
|
|
echo -e "$yellow 路径 (path) = ${cyan}${_path}$none" |
|
|
|
echo -e "$yellow 路径 (path) = ${cyan}/${path}$none" |
|
|
|
|
|
|
|
echo |
|
|
|
echo |
|
|
|
fi |
|
|
|
|
|
|
|
echo -e "$yellow TLS (Enable TLS) = ${cyan}打开$none" |
|
|
|
echo -e "$yellow TLS (Enable TLS) = ${cyan}打开$none" |
|
|
|
echo |
|
|
|
echo |
|
|
|
# echo -e " 请将 Obfs 设置为 $obfs ...并忽略 传输协议... (如果你使用 Pepi / ShadowRay) " |
|
|
|
# echo -e " 请将 Obfs 设置为 $obfs ...并忽略 传输协议... (如果你使用 Pepi / ShadowRay) " |
|
|
@ -2387,12 +2385,10 @@ create_v2ray_config_text() { |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo "伪装类型 (header type) = ${header}" |
|
|
|
echo "伪装类型 (header type) = ${header}" |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo "伪装域名 (host) = ${host}" |
|
|
|
echo "伪装域名 (host) = ${domain}" |
|
|
|
echo |
|
|
|
echo |
|
|
|
if [[ $is_path ]]; then |
|
|
|
echo "路径 (path) = ${_path}" |
|
|
|
echo -e "$yellow 路径 (path) = ${cyan}/${path}$none" |
|
|
|
|
|
|
|
echo |
|
|
|
echo |
|
|
|
fi |
|
|
|
|
|
|
|
echo "TLS (Enable TLS) = 打开" |
|
|
|
echo "TLS (Enable TLS) = 打开" |
|
|
|
echo |
|
|
|
echo |
|
|
|
# echo -e " 请将 Obfs 设置为 $obfs ...并忽略 传输协议... (如果你使用 Pepi / ShadowRay) " |
|
|
|
# echo -e " 请将 Obfs 设置为 $obfs ...并忽略 传输协议... (如果你使用 Pepi / ShadowRay) " |
|
|
|