Skip to content

TLS连接有一定概率会报错CurvePreferences includes unsupported curve #5031

Closed as not planned

Description

@FlyoverMe

完整性要求

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

描述

前几天从25.4.30更新到25.8.3版本之后,发现只要是涉及到TLS的连接(已测试trojan和ws),无论是用自己的证书还是CDN的证书,都有一定概率出现握手失败的情况。重启xray进程可暂时解决该问题,但通常运行几个小时之后又会出现这个情况。

重现方式

运行涉及TLS的连接数小时。

Image

客户端配置

Details

"streamSettings": {
    "security": "tls",
    "tlsSettings": {
     "serverName": "***",
     "allowInsecure": false,
     "fingerprint": "randomized"
    },
    "sockopt": {
     "domainStrategy": "ForceIPv6"
    }
   },

服务端配置

Details

"streamSettings": {
    "security": "tls",
    "tlsSettings": {
     "rejectUnknownSni": true,
     "alpn": "http/1.1",
     "minVersion": "1.2",
     "maxVersion": "1.3",
     "certificates": [
      {
       "certificateFile": "/root/xray/trojan-cert.pem",
       "keyFile": "/root/xray/trojan-key.pem"
      }
     ]
    }
   },

客户端日志

Details

2025/08/18 01:22:19.113615 [Info] [1550582075] app/proxyman/outbound: app/proxyman/outbound: failed to process outbound traffic > proxy/trojan: failed to find an available destination > common/retry: [tls: CurvePreferences includes unsupported curve] > common/retry: all retry attempts failed

服务端日志

Details

N/A

Activity

  1. patterniha commented on Aug 18, 2025

    @patterniha
    Collaborator

    many users report this randomized fingerprint problem.

  2. FlyoverMe commented on Aug 18, 2025

    @FlyoverMe
    Author

    补充 经测试最后一个没有该问题的版本目前是25.6.8

  3. Fangliding commented on Aug 18, 2025

    @Fangliding
    Member

    应该是utls在支持mlkem之后往配置里填但是指纹又roll到不支持的版本导致出问题 建议直接使用Chrome

  4. RPRX commented on Aug 18, 2025

    @RPRX
    Member

    日经问题

  5. RPRX commented on Aug 18, 2025

    @RPRX
    Member

    重启xray进程可暂时解决该问题,但通常运行几个小时之后又会出现这个情况。

    重启确实可以解决,因为 Xray randomized 指纹是生成后全局一直用的,所以你后半段说的情况不会出现

  6. FlyoverMe commented on Aug 18, 2025

    @FlyoverMe
    Author

    感谢指点。把fingerprint改成了chrome之后跑了几个小时都没有问题。我的xray是在路由器上运行的,路由器内存小,偶尔会因为oom导致程序重启,这样说的话,故障根源算是找到了!谢谢各位大佬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions