Fix: Return error when Fingerprint does not support TLS 1.3#3774
Merged
Fix: Return error when Fingerprint does not support TLS 1.3#3774
Conversation
Member
其实我也觉得只支持 TLSv1.2 的话有点怪,@gaukas 看一下? |
Member
Author
我已经在utls提交一个issue询问了 它确实是1.2 已经漏了证书让我服务器挨墙了 尝试捕获错误避免panic肯定是没问题的( |
Member
|
Thank for the great investigation! |
Member
|
|
This was referenced Oct 6, 2024
leninalive
pushed a commit
to amnezia-vpn/amnezia-xray-core
that referenced
this pull request
Oct 29, 2024
it2konst
pushed a commit
to it2konst/gametunnel-core
that referenced
this pull request
Mar 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
在尝试解决 #2896 的时候 稍微调试了一下,发现
uConn.HandshakeState.State13.EcdheKey竟然是nil, 调查后发现 utls 的安卓11指纹(实为OkHttp)是仅TLS 1.2的 (见 https://github.com/refraction-networking/utls/blob/23de245734c7c25b11200f8b5859c2114c032e51/u_parrots.go#L1595 因为它没有SupportedVersionsExtension扩展) 连TLS1.3都不是EcdheKey自然就是nil了 继续尝试调用其ECDH方法自然就导致了空指针panic我认为这是utls库的一个错误,因为OkHttp在安卓10就默认使用了TLS13 不过考虑到可能还有其他仅TLS12的指纹 被random到踩到坑 还是在Xray这边检测并返回错误 避免直接panic比较好
闲的话可以把服务器证书换成GTS签发的 然后用android指纹 会因为使用TLS12导致证书泄露 GFW看到GTS的证书就会把服务器IP阻断几分钟
我本地测试的时候发现的