Skip to content

Commit

Permalink
[fix] ss config issues
Browse files Browse the repository at this point in the history
  • Loading branch information
233boy committed May 13, 2018
1 parent 276f17a commit 001fd37
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 20 deletions.
48 changes: 31 additions & 17 deletions config/blocked_hosts/server/http_ss.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 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.24"
_version="v2.25"

cmd="apt-get"

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 001fd37

Please sign in to comment.