0
0
mirror of https://github.com/XTLS/REALITY.git synced 2025-08-22 14:38:35 +00:00

Some small changes

https://github.com/XTLS/REALITY/pull/10
https://github.com/XTLS/REALITY/pull/11

---------

Co-authored-by: Jes Cok <xigua67damn@gmail.com>
Co-authored-by: caikun233 <69567735+caikun233@users.noreply.github.com>
This commit is contained in:
RPRX 2025-06-08 13:21:14 +00:00 committed by GitHub
parent 4fd34dd4eb
commit 50752aec6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 7 deletions

View File

@ -28,11 +28,11 @@ TODO List: TODO
"decryption": "none" "decryption": "none"
}, },
"streamSettings": { "streamSettings": {
"network": "tcp", "network": "raw",
"security": "reality", "security": "reality",
"realitySettings": { "realitySettings": {
"show": false, // Optional, if true, output debugging information "show": false, // Optional, if true, output debugging information
"dest": "example.com:443", // Required, the format is the same as the dest of VLESS fallbacks "target": "example.com:443", // Required, the format is the same as the dest of VLESS fallbacks
"xver": 0, // Optional, the format is the same as xver of VLESS fallbacks "xver": 0, // Optional, the format is the same as xver of VLESS fallbacks
"serverNames": [ // Required, the acceptable serverName list, does not support * wildcards for now "serverNames": [ // Required, the acceptable serverName list, does not support * wildcards for now
"example.com", "example.com",
@ -96,7 +96,7 @@ The next main goal of REALITY is "**pre-built mode**", that is, to collect and b
] ]
}, },
"streamSettings": { "streamSettings": {
"network": "tcp", "network": "raw",
"security": "reality", "security": "reality",
"realitySettings": { "realitySettings": {
"show": false, // Optional, if true, output debugging information "show": false, // Optional, if true, output debugging information
@ -123,3 +123,7 @@ The REALITY client can perfectly distinguish temporary trusted certificates, rea
1. When the temporary trusted certificate is received, the proxy connection is available and everything is business as usual 1. When the temporary trusted certificate is received, the proxy connection is available and everything is business as usual
2. When the real certificate is received, enter the crawler mode (spiderX) 2. When the real certificate is received, enter the crawler mode (spiderX)
3. When an invalid certificate is received, TLS alert will be sent and the connection will be disconnected 3. When an invalid certificate is received, TLS alert will be sent and the connection will be disconnected
## Stargazers over time
[![Stargazers over time](https://starchart.cc/XTLS/REALITY.svg)](https://starchart.cc/XTLS/REALITY)

View File

@ -28,11 +28,11 @@ TODO List: TODO
"decryption": "none" "decryption": "none"
}, },
"streamSettings": { "streamSettings": {
"network": "tcp", "network": "raw",
"security": "reality", "security": "reality",
"realitySettings": { "realitySettings": {
"show": false, // 选填,若为 true输出调试信息 "show": false, // 选填,若为 true输出调试信息
"dest": "example.com:443", // 必填,格式同 VLESS fallbacks 的 dest "target": "example.com:443", // 必填,格式同 VLESS fallbacks 的 dest
"xver": 0, // 选填,格式同 VLESS fallbacks 的 xver "xver": 0, // 选填,格式同 VLESS fallbacks 的 xver
"serverNames": [ // 必填,客户端可用的 serverName 列表,暂不支持 * 通配符 "serverNames": [ // 必填,客户端可用的 serverName 列表,暂不支持 * 通配符
"example.com", "example.com",
@ -96,7 +96,7 @@ REALITY 的下一个主要目标是“**预先构建模式**”,即提前采
] ]
}, },
"streamSettings": { "streamSettings": {
"network": "tcp", "network": "raw",
"security": "reality", "security": "reality",
"realitySettings": { "realitySettings": {
"show": false, // 选填,若为 true输出调试信息 "show": false, // 选填,若为 true输出调试信息

2
tls.go
View File

@ -488,7 +488,7 @@ func NewListener(inner net.Listener, config *Config) net.Listener {
return return
} }
go func() { go func() {
defer recover() defer func() { recover() }()
c, err = Server(context.Background(), c, l.config) c, err = Server(context.Background(), c, l.config)
if err == nil { if err == nil {
l.conns <- c l.conns <- c