4 Commits
v2.21 ... v2.25

Author SHA1 Message Date
233boy
001fd37343 [fix] ss config issues 2018-05-13 14:19:33 +08:00
233boy
276f17a3f1 add ws host 2018-05-07 16:38:22 +08:00
233boy
9383e69aaa update ws_tls config 2018-05-07 14:18:15 +08:00
233boy
f8dd41b947 [fix] host issues 2018-05-06 22:26:20 +08:00
4 changed files with 40 additions and 23 deletions

View File

@@ -20,25 +20,39 @@
"streamSettings": {
"network": "tcp",
"tcpSettings": {
"header": {
"type": "http",
"response": {
"version": "1.1",
"status": "200",
"reason": "OK",
"headers": {
"Content-encoding": ["gzip"],
"Content-Type": ["text/html; charset=utf-8"],
"Cache-Control": ["no-cache"],
"Vary": ["Accept-Encoding"],
"X-Frame-Options": ["deny"],
"X-XSS-Protection": ["1; mode=block"],
"X-content-type-options": ["nosniff"]
}
"header": {
"type": "http",
"response": {
"version": "1.1",
"status": "200",
"reason": "OK",
"headers": {
"Content-encoding": [
"gzip"
],
"Content-Type": [
"text/html; charset=utf-8"
],
"Cache-Control": [
"no-cache"
],
"Vary": [
"Accept-Encoding"
],
"X-Frame-Options": [
"deny"
],
"X-XSS-Protection": [
"1; mode=block"
],
"X-content-type-options": [
"nosniff"
]
}
}
}
}
}
}
}
},
"outbound": {
"protocol": "freedom",

View File

@@ -34,10 +34,13 @@
"network": "ws",
"security": "tls",
"tlsSettings": {
"serverName": "233blog.com",
"serverName": "233blog.com"
},
"wsSettings": {
"path": "/233blog"
"path": "/233blog",
"headers": {
"Host": "233blog.com"
}
}
},
"mux": {

View File

@@ -1130,7 +1130,7 @@ config() {
sed -i "28s/6666/$ssport/; 30s/chacha20-ietf/$ssciphers/; 31s/233blog.com/$sspass/" $v2ray_server_config
;;
2)
sed -i "50s/6666/$ssport/; 52s/chacha20-ietf/$ssciphers/; 53s/233blog.com/$sspass/" $v2ray_server_config
sed -i "64s/6666/$ssport/; 66s/chacha20-ietf/$ssciphers/; 67s/233blog.com/$sspass/" $v2ray_server_config
;;
3 | 4)
sed -i "31s/6666/$ssport/; 33s/chacha20-ietf/$ssciphers/; 34s/233blog.com/$sspass/" $v2ray_server_config

View File

@@ -10,7 +10,7 @@ none='\e[0m'
# Root
[[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1
_version="v2.21"
_version="v2.25"
cmd="apt-get"
@@ -238,7 +238,7 @@ view_v2ray_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
@@ -3132,7 +3132,7 @@ config() {
sed -i "28s/6666/$ssport/; 30s/chacha20-ietf/$ssciphers/; 31s/233blog.com/$sspass/" $v2ray_server_config
;;
2)
sed -i "50s/6666/$ssport/; 52s/chacha20-ietf/$ssciphers/; 53s/233blog.com/$sspass/" $v2ray_server_config
sed -i "64s/6666/$ssport/; 66s/chacha20-ietf/$ssciphers/; 67s/233blog.com/$sspass/" $v2ray_server_config
;;
3 | 4)
sed -i "31s/6666/$ssport/; 33s/chacha20-ietf/$ssciphers/; 34s/233blog.com/$sspass/" $v2ray_server_config