Skip to content

v26.6.22 版本,服务端自动终止退出的bug反馈 #6367

Description

@tianlichunhong

完整性要求

  • 我读完了 issue 模板中的所有注释,确保填写符合要求。
  • 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
  • 我提供了完整的配置文件和日志,而不是出于自己的判断只给出截取的部分。
  • 我搜索了 issues, 没有发现已提出的类似问题。
  • 问题在 Release 最新的版本上可以成功复现

描述

当客户端和服务端均为 xrayv26.6.22版,配置为vless- reality, 服务器端运行会自动退出。
当客户端为 xrayv26.6.22版,服务端为v26.6.1版,正常使用。

重现方式

运行命令/usr/bin/xray run -c /config/config.json
当客户端连接时,xray程序自动终止并退出。
服务器的OS版本为Ubuntu 26.04 LTS

客户端配置

    {
		"tag": "proxy",
        "protocol": "vless",
        "settings": {
            "vnext": [
                {
                    "address": "XXXXXXXXX",
                    "port":443,
                    "users": [
                        {
                            "id": "XXXXXXXXXX",
							"encryption": "none",
							"flow": "xtls-rprx-vision"
                        }
                    ]
                }
            ]
        },
        "streamSettings": {
            "network": "raw",
            "security": "reality",
            "realitySettings": {
                "serverName": "XXXXXXXX", 
                "publicKey": "XXXXXXXXXXXXXXXXXXXXXXXXX",
				"shortId": "XXXXXXXXXXXXX",
                "spiderX": ""
            },
			"sockopt": {
				"mark": 3
			}				
        }		
    },

服务端配置

"inbounds": [
{
"listen": "0.0.0.0",
"port": 443,
"protocol": "vless",
"settings": {
"clients": [
{
"id": "XXXXXXXXXXXXXXXX",
"flow": "xtls-rprx-vision"
}
],
"decryption": "none",
"fallbacks": [
{
"dest": "XXXXXXXXX:443"
}
]
},
"streamSettings": {
"network": "raw",
"security": "reality",
"realitySettings": {
"dest": "XXXXXXXX:443",
"serverNames": [
"XXXXXXXX"
],
"privateKey": "XXXXXXXXXX",
"shortIds": [
"XXXXXXXXX"
]
}
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls",
"quic"
]
}
}
]

客户端日志

这个日志忘记保存了。

服务端日志

panic: interface conversion: *custom.tcpCustomServerConn is not reality.CloseWriteConn: missing method CloseWrite

goroutine 125 [running]:
github.com/xtls/reality.Server({0x18f0908, 0x27cfc60}, {0x1901330, 0x8b593d90080}, 0x8b593177348)
github.com/xtls/reality@v0.0.0-20260322125925-9234c772ba8f/tls.go:186 +0x4f4
github.com/xtls/xray-core/transport/internet/reality.Server(...)
github.com/xtls/xray-core/transport/internet/reality/reality.go:53
github.com/xtls/xray-core/transport/internet/tcp.(*Listener).keepAccepting.func1()
github.com/xtls/xray-core/transport/internet/tcp/hub.go:120 +0x6f
created by github.com/xtls/xray-core/transport/internet/tcp.(*Listener).keepAccepting in goroutine 66
github.com/xtls/xray-core/transport/internet/tcp/hub.go:116 +0x105

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions