Skip to content

Commit 001fd37

Browse files
author
233boy
committed
[fix] ss config issues
1 parent 276f17a commit 001fd37

File tree

3 files changed

+34
-20
lines changed

3 files changed

+34
-20
lines changed

config/blocked_hosts/server/http_ss.json

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,39 @@
2020
"streamSettings": {
2121
"network": "tcp",
2222
"tcpSettings": {
23-
"header": {
24-
"type": "http",
25-
"response": {
26-
"version": "1.1",
27-
"status": "200",
28-
"reason": "OK",
29-
"headers": {
30-
"Content-encoding": ["gzip"],
31-
"Content-Type": ["text/html; charset=utf-8"],
32-
"Cache-Control": ["no-cache"],
33-
"Vary": ["Accept-Encoding"],
34-
"X-Frame-Options": ["deny"],
35-
"X-XSS-Protection": ["1; mode=block"],
36-
"X-content-type-options": ["nosniff"]
37-
}
23+
"header": {
24+
"type": "http",
25+
"response": {
26+
"version": "1.1",
27+
"status": "200",
28+
"reason": "OK",
29+
"headers": {
30+
"Content-encoding": [
31+
"gzip"
32+
],
33+
"Content-Type": [
34+
"text/html; charset=utf-8"
35+
],
36+
"Cache-Control": [
37+
"no-cache"
38+
],
39+
"Vary": [
40+
"Accept-Encoding"
41+
],
42+
"X-Frame-Options": [
43+
"deny"
44+
],
45+
"X-XSS-Protection": [
46+
"1; mode=block"
47+
],
48+
"X-content-type-options": [
49+
"nosniff"
50+
]
51+
}
52+
}
3853
}
39-
}
4054
}
41-
}
55+
}
4256
},
4357
"outbound": {
4458
"protocol": "freedom",

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,7 @@ config() {
11301130
sed -i "28s/6666/$ssport/; 30s/chacha20-ietf/$ssciphers/; 31s/233blog.com/$sspass/" $v2ray_server_config
11311131
;;
11321132
2)
1133-
sed -i "50s/6666/$ssport/; 52s/chacha20-ietf/$ssciphers/; 53s/233blog.com/$sspass/" $v2ray_server_config
1133+
sed -i "64s/6666/$ssport/; 66s/chacha20-ietf/$ssciphers/; 67s/233blog.com/$sspass/" $v2ray_server_config
11341134
;;
11351135
3 | 4)
11361136
sed -i "31s/6666/$ssport/; 33s/chacha20-ietf/$ssciphers/; 34s/233blog.com/$sspass/" $v2ray_server_config

v2ray.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ none='\e[0m'
1010
# Root
1111
[[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1
1212

13-
_version="v2.24"
13+
_version="v2.25"
1414

1515
cmd="apt-get"
1616

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

0 commit comments

Comments
 (0)