sing-box icon indicating copy to clipboard operation
sing-box copied to clipboard

最新的提交导致 xtls-rprx-vision 无法使用

Open zeetex opened this issue 1 year ago • 9 comments

操作系统

Windows

系统版本

Win10 22H2

安装类型

sing-box 原始命令行程序

如果您使用图形客户端程序,请提供该程序版本。

No response

版本

sing-box version 1.13.0-alpha.4-gb585bfdf

Environment: go1.25.0 windows/amd64
Tags: with_gvisor,with_quic,with_wireguard,with_utls,with_clash_api,with_acme,with_dhcp,with_tailscale
Revision: b585bfdf1be7486b25a35d5a5d3359e6fdc58ee3
CGO: disabled

描述

b585bfdf1be7486b25a35d5a5d3359e6fdc58ee3 导致 xtls-rprx-vision 无法使用

重现方式

使用如下配置本地运行 curl -x socks5h://127.0.0.1:7890 baidu.com

{
	"log": {
		"level": "info"
	},
	"dns": {
		"servers": [
			{
				"type": "tls",
				"tag": "alibaba",
				"server": "223.6.6.6"
			}
		],
		"final": "alibaba"
	},
	"inbounds": [
		{
			"type": "mixed",
			"tag": "mixed-in",
			"listen": "127.0.0.1",
			"listen_port": 7890
		},
		{
			"type": "vless",
			"tag": "vision-in",
			"listen": "127.0.0.1",
			"listen_port": 10443,
			"users": [
				{
					"name": "sing",
					"uuid": "97acb4f9-41fc-43b2-be0e-ad0cfe343c85",
					"flow": "xtls-rprx-vision"
				}
			],
			"tls": {
				"enabled": true,
				"server_name": "www.bilibili.com",
				"reality": {
					"enabled": true,
					"handshake": {
						"server": "www.bilibili.com",
						"server_port": 443
					},
					"private_key": "ALfEOs7KWqJBgiNMcyZntO6rS3bkwkUWd4zOmFNtV3k"
				}
			}
		}
	],
	"outbounds": [
		{
			"type": "direct",
			"tag": "direct"
		},
		{
			"type": "vless",
			"tag": "vision-out",
			"server": "127.0.0.1",
			"server_port": 10443,
			"uuid": "97acb4f9-41fc-43b2-be0e-ad0cfe343c85",
			"flow": "xtls-rprx-vision",
			"tls": {
				"enabled": true,
				"server_name": "www.bilibili.com",
				"min_version": "1.3",
				"utls": {
					"enabled": true,
					"fingerprint": "chrome"
				},
				"reality": {
					"enabled": true,
					"public_key": "11HCUuDfkqpAmW4wacTlEsdYN40DgvWh4y84XGFUgBQ"
				}
			}
		}
	],
	"route": {
		"rules": [
			{
				"inbound": "mixed-in",
				"outbound": "vision-out"
			}
		],
		"final": "direct"
	}
}

日志

INFO[0000] inbound/mixed[mixed-in]: tcp server started at 127.0.0.1:7890
INFO[0000] inbound/vless[vision-in]: tcp server started at 127.0.0.1:10443
INFO[0000] sing-box started (0.11s)
INFO[0005] [1238765405 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:64631
INFO[0005] [1238765405 1ms] inbound/mixed[mixed-in]: inbound connection to baidu.com:80
INFO[0005] [1238765405 1ms] outbound/vless[vision-out]: outbound connection to baidu.com:80
INFO[0005] [3987104162 0ms] inbound/vless[vision-in]: inbound connection from 127.0.0.1:64632
INFO[0005] [1238765405 83ms] outbound/vless[vision-out]: outbound connection to baidu.com:80
ERROR[0005] [1238765405 84ms] connection: open connection to baidu.com:80 using outbound/vless[vision-out]: initialize vision: vision: not a valid supported TLS connection: *badtls.ReadWaitConn

支持我们

完整性要求

  • [x] 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
  • [x] 我保证提供了可以在本地重现该问题的服务器、客户端配置文件与流程,而不是一个脱敏的复杂客户端配置文件。
  • [x] 我保证提供了可用于重现我报告的错误的最简配置,而不是依赖远程服务器、TUN、图形界面客户端或者其他闭源软件。
  • [x] 我保证提供了完整的配置文件与日志,而不是出于对自身智力的自信而仅提供了部分认为有用的部分。

zeetex avatar Aug 19 '25 22:08 zeetex

同样遇到,1.12.2版本转发用不了,直连没问题,回退上一个版本就没问题了。

Aug 20 11:04:16 debian sing-box[1100]: INFO[0485] [925580014 59ms] inbound/vless[vless-reality-in]: [0] inbound connection to www.nodeseek.com:443
Aug 20 11:04:16 debian sing-box[1100]: INFO[0485] [925580014 59ms] outbound/vless[to-server-b]: outbound connection to www.nodeseek.com:443
Aug 20 11:04:16 debian sing-box[1100]: INFO[0485] [2142388598 61ms] inbound/vless[vless-reality-in]: [0] inbound connection to claude.ai:443
Aug 20 11:04:16 debian sing-box[1100]: INFO[0485] [2142388598 62ms] outbound/vless[to-server-b]: outbound connection to claude.ai:443
Aug 20 11:04:16 debian sing-box[1100]: INFO[0485] [925580014 730ms] outbound/vless[to-server-b]: outbound connection to www.nodeseek.com:443
Aug 20 11:04:16 debian sing-box[1100]: ERROR[0485] [925580014 732ms] connection: open connection to www.nodeseek.com:443 using outbound/vless[to-server-b]: initialize vision: vision: not a valid supported TLS connection: *tls.realityClientConnWrapper
Aug 20 11:04:16 debian sing-box[1100]: INFO[0486] [2142388598 733ms] outbound/vless[to-server-b]: outbound connection to claude.ai:443
Aug 20 11:04:16 debian sing-box[1100]: ERROR[0486] [2142388598 733ms] connection: open connection to claude.ai:443 using outbound/vless[to-server-b]: initialize vision: vision: not a valid supported TLS connection: *tls.realityClientConnWrapper
Aug 20 11:04:16 debian sing-box[1100]: INFO[0486] [3593368073 0ms] inbound/vless[vless-reality-in]: inbound connection from [ip]:33480
Aug 20 11:04:16 debian sing-box[1100]: INFO[0486] [3593368073 58ms] inbound/vless[vless-reality-in]: [0] inbound connection to claude.ai:443
Aug 20 11:04:16 debian sing-box[1100]: INFO[0486] [3593368073 59ms] outbound/vless[to-server-b]: outbound connection to claude.ai:443
Aug 20 11:04:17 debian sing-box[1100]: INFO[0486] [3593368073 807ms] outbound/vless[to-server-b]: outbound connection to claude.ai:443
Aug 20 11:04:17 debian sing-box[1100]: ERROR[0486] [3593368073 808ms] connection: open connection to claude.ai:443 using outbound/vless[to-server-b]: initialize vision: vision: not a valid supported TLS connection: *tls.realityClientConnWrapper

imengying avatar Aug 20 '25 03:08 imengying

me too, pls

rawvoid avatar Aug 20 '25 06:08 rawvoid

I confirm the same issue on Arch Linux 6.16.1. The Xray server is up to date. Had to downgrade to sing-box 1.11.14.

seethesky avatar Aug 20 '25 07:08 seethesky

same here

spenserlucy avatar Aug 20 '25 07:08 spenserlucy

same+1

jasper-khan avatar Aug 20 '25 08:08 jasper-khan

一样的,已经退回1.12.1了

SheffieldLee avatar Aug 20 '25 10:08 SheffieldLee

Same situation on Windows11 with sing-box core v1.12.2 and v.1.13.0-alpha.4 After start sing-box core, connection doesn't working at all.

Log string: +0000 2025-08-20 11:11:50 ERROR [1482006085 14ms] connection: open connection to <anyCloudflareIPaddress>:443 using outbound/vless[proxyName]: initialize vision: vision: not a valid supported TLS connection: *tls.realityClientConnWrapper

After rollback to the sing-box v1.12.1 (or less) and v.1.13.0-alpha.3 (or less) - everything works as should be!

neerro avatar Aug 20 '25 11:08 neerro

same problem, rolling back to 1.12.1 from 1.12.2 fixes problem

re7gog avatar Aug 20 '25 14:08 re7gog

1468d83895502ac468b5dca99f188a007ad1a5d8 已经修好了

zeetex avatar Aug 20 '25 14:08 zeetex