Skip to content

Commit

Permalink
[fix] h2 path issues
Browse files Browse the repository at this point in the history
  • Loading branch information
233boy committed May 5, 2018
1 parent 90a1e2b commit 90b5dc0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 23 deletions.
16 changes: 7 additions & 9 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1336,9 +1336,9 @@ do_service() {
show_config_info() {
local header="none"
if [[ $path ]]; then
local host=$domain
local _path="/$path"
else
local host=""
local _path="/"
fi

case $v2ray_transport_opt in
Expand Down Expand Up @@ -1394,8 +1394,8 @@ show_config_info() {
"aid": "233",
"net": "${net}",
"type": "none",
"host": "${host}",
"path": "/$path",
"host": "${domain}",
"path": "$_path",
"tls": "tls"
}
EOF
Expand Down Expand Up @@ -1453,12 +1453,10 @@ show_config_info() {
echo
echo -e "$yellow 伪装类型 (header type) = ${cyan}${header}$none"
echo
echo -e "$yellow 伪装域名 (host) = ${cyan}${host}$none"
echo -e "$yellow 伪装域名 (host) = ${cyan}${domain}$none"
echo
echo -e "$yellow 路径 (path) = ${cyan}${_path}$none"
echo
if [[ $path ]]; then
echo -e "$yellow 路径 (path) = ${cyan}/${path}$none"
echo
fi
echo -e "$yellow TLS (Enable TLS) = ${cyan}打开$none"
echo
# echo -e " 请将 Obfs 设置为 $obfs ...并忽略 传输协议... (如果你使用 Pepi / ShadowRay) "
Expand Down
24 changes: 10 additions & 14 deletions v2ray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ none='\e[0m'
# Root
[[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1

_version="v2.14"
_version="v2.15"

cmd="apt-get"

Expand Down Expand Up @@ -127,9 +127,9 @@ ciphers=(
get_transport_args() {
header="none"
if [[ $is_path ]]; then
host=$domain
_path="/$path"
else
host=""
_path="/"
fi
case $v2ray_transport in
1 | 9)
Expand Down Expand Up @@ -189,8 +189,8 @@ create_vmess_URL_config() {
"aid": "${alterId}",
"net": "${net}",
"type": "none",
"host": "${host}",
"path": "/$path",
"host": "${domain}",
"path": "$_path",
"tls": "tls"
}
EOF
Expand Down Expand Up @@ -240,10 +240,8 @@ view_v2ray_config_info() {
echo
echo -e "$yellow 伪装域名 (host) = ${cyan}${host}$none"
echo
if [[ $is_path ]]; then
echo -e "$yellow 路径 (path) = ${cyan}/${path}$none"
echo
fi
echo -e "$yellow 路径 (path) = ${cyan}${_path}$none"
echo
echo -e "$yellow TLS (Enable TLS) = ${cyan}打开$none"
echo
# echo -e " 请将 Obfs 设置为 $obfs ...并忽略 传输协议... (如果你使用 Pepi / ShadowRay) "
Expand Down Expand Up @@ -2387,12 +2385,10 @@ create_v2ray_config_text() {
echo
echo "伪装类型 (header type) = ${header}"
echo
echo "伪装域名 (host) = ${host}"
echo "伪装域名 (host) = ${domain}"
echo
echo "路径 (path) = ${_path}"
echo
if [[ $is_path ]]; then
echo -e "$yellow 路径 (path) = ${cyan}/${path}$none"
echo
fi
echo "TLS (Enable TLS) = 打开"
echo
# echo -e " 请将 Obfs 设置为 $obfs ...并忽略 传输协议... (如果你使用 Pepi / ShadowRay) "
Expand Down

0 comments on commit 90b5dc0

Please sign in to comment.