[GH-ISSUE #6501] [Bug]: 3.7.0 中 REALITY 入站在最小客户端版本留空时客户端无法连接(回退 3.3.1 正常) #4376

Closed
opened 2026-10-31 20:39:13 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @jswcph on GitHub (Sep 13, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6501

Describe the bug

版本3.7.0 重大bug

全新系统默认安装完毕后新搭建的节点有延迟 无法使用 回退到旧版本3.3.1问题解除

另一台从旧版本升级到最新3.7.0也出现无法连接的问题

How to reproduce the problem

如上所描述

Expected behavior

No response

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

3.7.0

Xray-core version

26.7.28

How did you install 3x-ui?

install.sh script

Operating system

debian12/13

Which parts of the panel are affected?

No response

Browser (only if it is a UI bug)

chrome

Is the panel behind a reverse proxy or CDN?

No — direct access

Before submitting

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
Originally created by @jswcph on GitHub (Sep 13, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6501 ### Describe the bug 版本3.7.0 重大bug 全新系统默认安装完毕后新搭建的节点有延迟 无法使用 回退到旧版本3.3.1问题解除 另一台从旧版本升级到最新3.7.0也出现无法连接的问题 ### How to reproduce the problem 如上所描述 ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.7.0 ### Xray-core version 26.7.28 ### How did you install 3x-ui? install.sh script ### Operating system debian12/13 ### Which parts of the panel are affected? _No response_ ### Browser (only if it is a UI bug) chrome ### Is the panel behind a reverse proxy or CDN? No — direct access ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:39:13 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@github-actions[bot] commented on GitHub (Sep 13, 2026):

最可能的原因不在面板代码,而在 3.7.0 捆绑的 Xray-core v26.7.28 对 REALITY 的一个内置下限:minClientVer 留空时,内核会自动按 26.3.27 过滤,客户端内核版本低于它的连接会被静默转发给 REALITY 的伪装目标 —— TLS 握手能完成、测延迟有数字,但一个字节都不走代理。这正好解释"有延迟但无法使用"以及"回退 3.3.1 就恢复"。不过你没说这个节点用的是哪种协议 / 安全设置,所以还不能定案,末尾有 3 个问题。

为什么怀疑是它

这个下限是 Xray-core v26.7.11 引入的(本仓库 #5922 已定位到上游 infra/conf/transport_security.go 的 REALITYConfig.Build():else { config.MinClientVer = []byte{26, 3, 27} })。你的两个版本正好跨过这条分界线:

3x-ui 版本 发布包里的 Xray-core 出处
v3.7.0 v26.7.28 .github/workflows/release.yml:127(Docker 同版:DockerInit.sh:35)
v3.3.1 v26.6.1 v3.3.1 的 .github/workflows/release.yml:115

用 install.sh 回退面板 = 同时把内核降回 v26.6.1(没有这个下限),所以"换回 3.3.1 问题就没了"和"另一台升级到 3.7.0 后也连不上"是同一件事的两面。

面板自己不碰这个字段:realitySettings 原样写进 Xray 配置(internal/database/model/model.go:374-388,唯一的改写是 xhttp / Hysteria 两个分支),表单默认就是空的(frontend/src/schemas/protocols/security/reality.ts:61 — minClientVer: z.string().default(''))。

现在就能用的两个办法(都不用改客户端)

  1. 编辑入站 → 安全:REALITY → 最小客户端版本 填 0.0.0(或 1.0.0)→ 保存 → 重启 Xray。这个字段是按入站生效的,每个 REALITY 入站都要单独设一次。
    你这版字段提示的原文就是这么写的(v3.7.0 的 internal/web/translation/zh-CN.json:625):

    留空不等于不限制:Xray-core 会改用所运行内核版本的内置最低值(当前版本为 26.3.27),拒绝自报版本更低的客户端——包括 Mihomo、sing-box 等第三方内核。填 1.0.0 可放行它们,代价是允许过时的 TLS 指纹。

  2. 面板里的 Xray 内核版本切换器把内核降到 v26.6.27,面板保持 3.7.0。切换器的可选下限就是 26.6.27:internal/web/service/server.go:867 — if major > 26 || (major == 26 && minor > 6) || (major == 26 && minor == 6 && patch >= 27)。

上游已经改回来,但还没进正式版

2ec6c736("feat(xray): update xray-core to v26.9.8 and adapt panel")的提交说明写明:"REALITY no longer applies a built-in minClientVer (26.3.27) when the field is empty.",随后 d0edbcec 又升到 v26.9.9(DockerInit.sh:36)。但 git tag --contains 2ec6c736 只返回 dev-latest —— v3.7.0(目前最新正式版)里还没有这个变化。

为什么还不能定案

面板"添加入站"的出厂默认其实是 VLESS + RAW(tcp) + 安全 none(frontend/src/pages/inbounds/form/InboundFormModal.tsx:173-190:protocol: 'vless'、network: 'tcp'、security: 'none'),这个组合根本不经过 REALITY,上面的分析就不成立。所以"默认状态"具体指哪一种,直接决定结论。

请补充 3 件事(提交表单里没有的)

  1. 这个节点的协议 / 传输 / 安全三项分别是什么?(例如 VLESS + RAW + REALITY,还是 VLESS + XHTTP + TLS)
  2. 客户端用的是哪个 App 和版本?(v2rayN / v2rayNG / Shadowrocket / Clash-Mihomo / sing-box …)
  3. 按上面办法 1 把最小客户端版本设成 0.0.0 并重启 Xray 之后,是否恢复正常?这一条就能直接定案。

另外,你的日志栏是空的。如果办法 1 无效,请把 x-ui log 里连接尝试前后几行以文本形式贴上来(我看不了截图)。中文文档里也记了这个坑:docs/content/docs/zh/config/reality.mdx:108("客户端版本限制")。

在收到以上信息前,先打上 clarification needed 并保持 open。

Verdict:        Insufficient information
Severity:       N/A — no panel-side defect established yet
Confidence:     Medium. The version pairing matches the known upstream gate exactly, but the report never states the inbound's protocol/security, and the panel's Add-Inbound default is security "none", which the gate does not touch.
Root cause:     Not established for this report. Hypothesis, matching every stated fact: upstream Xray-core infra/conf/transport_security.go, REALITYConfig.Build() — an empty minClientVer is defaulted to {26, 3, 27}, introduced in core v26.7.11 and enforced during the REALITY handshake by diverting older clients to the fallback dest. Trigger: a REALITY inbound with Min Client Ver left blank plus a client core reporting below 26.3.27. 3x-ui contributes nothing: internal/database/model/model.go:374-388 writes streamSettings through unchanged, and frontend/src/schemas/protocols/security/reality.ts:61 defaults the field to "".
Already fixed:  Not in any release. On the default branch the bundled core is v26.9.9 (DockerInit.sh:36), and 2ec6c736 ("feat(xray): update xray-core to v26.9.8 and adapt panel") states the core no longer applies the built-in minClientVer; git tag --contains 2ec6c736 returns only dev-latest, so v3.7.0 (latest release, 2026-08-24) still bundles v26.7.28 with the floor.
Duplicate of:   None yet — not closing on a symptom match. Related: #5922 (tracking issue for the same gate, closed as upstream), #6041, #6016, #6011, #5964, #6321.
Evidence:       .github/workflows/release.yml:127 and DockerInit.sh:35 at tag v3.7.0 → Xray v26.7.28; .github/workflows/release.yml:115 at tag v3.3.1 → Xray v26.6.1, i.e. the downgrade crosses v26.7.11 where #5922 places the gate. internal/database/model/model.go:374-388 — "streamSettings := i.StreamSettings" with only StripInboundXhttpClientFields / HealHysteriaStreamVersion applied, then "StreamSettings: json_util.RawMessage(streamSettings)". frontend/src/schemas/protocols/security/reality.ts:61 — "minClientVer: z.string().default('')". frontend/src/pages/inbounds/form/InboundFormModal.tsx:173-190 — buildAddModeValues() returns protocol 'vless', network 'tcp', security 'none'. internal/web/service/server.go:867 — the in-panel core switcher floor at 26.6.27. internal/web/translation/zh-CN.json:625 at tag v3.7.0 — the tooltip quoted above. Commit 2ec6c736 message and DockerInit.sh:36 on main for the upstream reversal.
Not determined: Whether this reporter's inbound uses REALITY at all, and whether Min Client Ver = 0.0.0 clears it. Setting that field and restarting Xray settles it in one step. I also could not read the xray-core source directly — the Go module cache is outside this checkout — so the gate's introduction in v26.7.11 rests on #5922's upstream citation and on commit 2ec6c736's own description of its removal, not on lines I read myself.

此回复由自动化流程生成,维护者可能会跟进。

<!-- gh-comment-id:5653619122 --> @github-actions[bot] commented on GitHub (Sep 13, 2026): 最可能的原因不在面板代码,而在 3.7.0 捆绑的 Xray-core **v26.7.28** 对 REALITY 的一个内置下限:`minClientVer` 留空时,内核会自动按 `26.3.27` 过滤,客户端内核版本低于它的连接会被静默转发给 REALITY 的伪装目标 —— TLS 握手能完成、测延迟有数字,但一个字节都不走代理。这正好解释"有延迟但无法使用"以及"回退 3.3.1 就恢复"。不过你没说这个节点用的是哪种协议 / 安全设置,所以还不能定案,末尾有 3 个问题。 ## 为什么怀疑是它 这个下限是 Xray-core **v26.7.11** 引入的(本仓库 #5922 已定位到上游 `infra/conf/transport_security.go` 的 `REALITYConfig.Build()`:`else { config.MinClientVer = []byte{26, 3, 27} }`)。你的两个版本正好跨过这条分界线: | 3x-ui 版本 | 发布包里的 Xray-core | 出处 | | --- | --- | --- | | v3.7.0 | v26.7.28 | `.github/workflows/release.yml:127`(Docker 同版:`DockerInit.sh:35`) | | v3.3.1 | v26.6.1 | v3.3.1 的 `.github/workflows/release.yml:115` | 用 install.sh 回退面板 = 同时把内核降回 v26.6.1(没有这个下限),所以"换回 3.3.1 问题就没了"和"另一台升级到 3.7.0 后也连不上"是同一件事的两面。 面板自己不碰这个字段:`realitySettings` 原样写进 Xray 配置(`internal/database/model/model.go:374-388`,唯一的改写是 xhttp / Hysteria 两个分支),表单默认就是空的(`frontend/src/schemas/protocols/security/reality.ts:61` — `minClientVer: z.string().default('')`)。 ## 现在就能用的两个办法(都不用改客户端) 1. 编辑入站 → 安全:REALITY → **最小客户端版本** 填 `0.0.0`(或 `1.0.0`)→ 保存 → 重启 Xray。这个字段是**按入站**生效的,每个 REALITY 入站都要单独设一次。 你这版字段提示的原文就是这么写的(v3.7.0 的 `internal/web/translation/zh-CN.json:625`): > 留空不等于不限制:Xray-core 会改用所运行内核版本的内置最低值(当前版本为 26.3.27),拒绝自报版本更低的客户端——包括 Mihomo、sing-box 等第三方内核。填 1.0.0 可放行它们,代价是允许过时的 TLS 指纹。 2. 面板里的 Xray 内核版本切换器把内核降到 **v26.6.27**,面板保持 3.7.0。切换器的可选下限就是 26.6.27:`internal/web/service/server.go:867` — `if major > 26 || (major == 26 && minor > 6) || (major == 26 && minor == 6 && patch >= 27)`。 ## 上游已经改回来,但还没进正式版 `2ec6c736`("feat(xray): update xray-core to v26.9.8 and adapt panel")的提交说明写明:*"REALITY no longer applies a built-in minClientVer (26.3.27) when the field is empty."*,随后 `d0edbcec` 又升到 v26.9.9(`DockerInit.sh:36`)。但 `git tag --contains 2ec6c736` 只返回 `dev-latest` —— v3.7.0(目前最新正式版)里还没有这个变化。 ## 为什么还不能定案 面板"添加入站"的出厂默认其实是 **VLESS + RAW(tcp) + 安全 `none`**(`frontend/src/pages/inbounds/form/InboundFormModal.tsx:173-190`:`protocol: 'vless'`、`network: 'tcp'`、`security: 'none'`),这个组合根本不经过 REALITY,上面的分析就不成立。所以"默认状态"具体指哪一种,直接决定结论。 ## 请补充 3 件事(提交表单里没有的) 1. 这个节点的**协议 / 传输 / 安全**三项分别是什么?(例如 VLESS + RAW + REALITY,还是 VLESS + XHTTP + TLS) 2. 客户端用的是哪个 App 和版本?(v2rayN / v2rayNG / Shadowrocket / Clash-Mihomo / sing-box …) 3. 按上面办法 1 把最小客户端版本设成 `0.0.0` 并重启 Xray 之后,是否恢复正常?**这一条就能直接定案。** 另外,你的日志栏是空的。如果办法 1 无效,请把 `x-ui log` 里连接尝试前后几行**以文本形式**贴上来(我看不了截图)。中文文档里也记了这个坑:`docs/content/docs/zh/config/reality.mdx:108`("客户端版本限制")。 在收到以上信息前,先打上 `clarification needed` 并保持 open。 ``` Verdict: Insufficient information Severity: N/A — no panel-side defect established yet Confidence: Medium. The version pairing matches the known upstream gate exactly, but the report never states the inbound's protocol/security, and the panel's Add-Inbound default is security "none", which the gate does not touch. Root cause: Not established for this report. Hypothesis, matching every stated fact: upstream Xray-core infra/conf/transport_security.go, REALITYConfig.Build() — an empty minClientVer is defaulted to {26, 3, 27}, introduced in core v26.7.11 and enforced during the REALITY handshake by diverting older clients to the fallback dest. Trigger: a REALITY inbound with Min Client Ver left blank plus a client core reporting below 26.3.27. 3x-ui contributes nothing: internal/database/model/model.go:374-388 writes streamSettings through unchanged, and frontend/src/schemas/protocols/security/reality.ts:61 defaults the field to "". Already fixed: Not in any release. On the default branch the bundled core is v26.9.9 (DockerInit.sh:36), and 2ec6c736 ("feat(xray): update xray-core to v26.9.8 and adapt panel") states the core no longer applies the built-in minClientVer; git tag --contains 2ec6c736 returns only dev-latest, so v3.7.0 (latest release, 2026-08-24) still bundles v26.7.28 with the floor. Duplicate of: None yet — not closing on a symptom match. Related: #5922 (tracking issue for the same gate, closed as upstream), #6041, #6016, #6011, #5964, #6321. Evidence: .github/workflows/release.yml:127 and DockerInit.sh:35 at tag v3.7.0 → Xray v26.7.28; .github/workflows/release.yml:115 at tag v3.3.1 → Xray v26.6.1, i.e. the downgrade crosses v26.7.11 where #5922 places the gate. internal/database/model/model.go:374-388 — "streamSettings := i.StreamSettings" with only StripInboundXhttpClientFields / HealHysteriaStreamVersion applied, then "StreamSettings: json_util.RawMessage(streamSettings)". frontend/src/schemas/protocols/security/reality.ts:61 — "minClientVer: z.string().default('')". frontend/src/pages/inbounds/form/InboundFormModal.tsx:173-190 — buildAddModeValues() returns protocol 'vless', network 'tcp', security 'none'. internal/web/service/server.go:867 — the in-panel core switcher floor at 26.6.27. internal/web/translation/zh-CN.json:625 at tag v3.7.0 — the tooltip quoted above. Commit 2ec6c736 message and DockerInit.sh:36 on main for the upstream reversal. Not determined: Whether this reporter's inbound uses REALITY at all, and whether Min Client Ver = 0.0.0 clears it. Setting that field and restarting Xray settles it in one step. I also could not read the xray-core source directly — the Go module cache is outside this checkout — so the gate's introduction in v26.7.11 rests on #5922's upstream citation and on commit 2ec6c736's own description of its removal, not on lines I read myself. ``` *此回复由自动化流程生成,维护者可能会跟进。* <!-- claude-issue:analyst -->
Author
Owner

@NgaiYeanCoi commented on GitHub (Sep 13, 2026):

我跟你说,你把最小客户端版本改一下看看。
我之前刚升级的时候也遇到这个问题。
Image
如果不是你给一下你那边的日志

<!-- gh-comment-id:5653648016 --> @NgaiYeanCoi commented on GitHub (Sep 13, 2026): 我跟你说,你把最小客户端版本改一下看看。 我之前刚升级的时候也遇到这个问题。 <img width="759" height="925" alt="Image" src="https://github.com/user-attachments/assets/53cb8a4a-28fe-468a-8db8-c0096380e1cc" /> 如果不是你给一下你那边的日志
Author
Owner

@jswcph commented on GitHub (Sep 13, 2026):

是reality这个问题。之前一个版本就出现这个问题 回退旧版本了。结果昨天更新新版本确实reality的都连不上了。

刚才已经复测过,更新为最新的3.7.0
每一条reality的入站都要手动将最小xray版本填写为1.0.0
问题就得到解决

<!-- gh-comment-id:5653680163 --> @jswcph commented on GitHub (Sep 13, 2026): 是reality这个问题。之前一个版本就出现这个问题 回退旧版本了。结果昨天更新新版本确实reality的都连不上了。 刚才已经复测过,更新为最新的3.7.0 每一条reality的入站都要手动将最小xray版本填写为1.0.0 问题就得到解决
Author
Owner

@github-actions[bot] commented on GitHub (Sep 13, 2026):

确认了,就是之前推测的那条:v3.7.0 捆绑的 Xray-core v26.7.28 在 REALITY 的 minClientVer 留空时会套用内核内置下限 26.3.27,把版本低于它的客户端静默转给伪装目标——所以"能连上、有延迟数字、但一个字节都不走代理"。这不是面板代码的缺陷,面板原样透传这个字段;主分支已经通过升级内核把这个下限去掉了,但还没进正式版。你手动给每条 REALITY 入站填 1.0.0 是正确且目前最省事的解法。

感谢你回来复测——正是这一步把结论从推测变成了定案。

版本对照(就是这条分界线)

3x-ui 版本 捆绑的 Xray-core 出处
v3.3.1(你回退的那版) v26.6.1 git show v3.3.1:.github/workflows/release.yml:115
v3.7.0(当前最新正式版) v26.7.28 git show v3.7.0:.github/workflows/release.yml:127、DockerInit.sh:35
主分支(未发布) v26.9.9 DockerInit.sh:36

下限是上游 v26.7.11 引入的(本仓库 #5922 定位到 infra/conf/transport_security.go 的 REALITYConfig.Build():else { config.MinClientVer = []byte{26, 3, 27} })。用 install.sh 回退面板会同时把内核降回 v26.6.1,所以"回退 3.3.1 就好了"和"另一台升上 3.7.0 就连不上"是同一件事的两面。

面板自己不碰这个字段:internal/database/model/model.go:374-388 把 streamSettings 原样写进 Xray 配置(只改写 xhttp / Hysteria 两个分支),表单默认就是空字符串(frontend/src/schemas/protocols/security/reality.ts:61 — minClientVer: z.string().default(''))。v3.7.0 的字段提示其实已经写明了这个坑(internal/web/translation/zh-CN.json:625):

留空不等于不限制:Xray-core 会改用所运行内核版本的内置最低值(当前版本为 26.3.27),拒绝自报版本更低的客户端——包括 Mihomo、sing-box 等第三方内核。填 1.0.0 可放行它们,代价是允许过时的 TLS 指纹。

关于你的解法,两点提醒

  1. 填 1.0.0 的代价是放行过时的 TLS 指纹——REALITY 原本用这个下限挡掉老客户端的可识别指纹。如果你的客户端都是新版本,更稳妥的是等下个正式版(内核到 v26.9.x 后留空即等于不限制),届时可以把这些 1.0.0 清回空。
  2. 另一条不改入站的路子:用面板的 Xray 内核版本切换器把内核降到 v26.6.27(切换器的可选下限就是它,internal/web/service/server.go:867),面板保持 3.7.0。不建议在 3.7.0 上把内核切到 v26.9.x —— 那一代内核的配置面有不兼容改动(outbound proxySettings 被拒、freedom 的 sockopt.addressPortStrategy 被拒),面板 3.7.0 没有配套的模板迁移,内核可能起不来。

主分支上的状态

2ec6c736(feat(xray): update xray-core to v26.9.8 and adapt panel)的提交说明原文:

REALITY no longer applies a built-in minClientVer (26.3.27) when the field is empty. The form placeholder and the min/max hints in all 13 locales now say that empty means no minimum.

主分支的提示文案已经改成了 留空表示不设下限:Xray-core 接受任何客户端版本(internal/web/translation/zh-CN.json:627),随后 d0edbcec 又升到 v26.9.9。但 git tag --contains 2ec6c736 只返回 dev-latest,所以 v3.7.0 里还没有这个变化。

既然根因已定位、上游已修复、你手上也有可用的解法,这里先关掉。等下个正式版发布后如果 REALITY 仍然连不上,欢迎回来评论,会重新打开。

Verdict:        Already fixed (on the default branch; unreleased)
Severity:       High — REALITY with Min Client Ver left blank is the panel's most common inbound shape, and every affected client fails silently (TLS handshake succeeds, traffic is diverted to the REALITY dest).
Confidence:     High. The reporter confirmed on v3.7.0 that setting Min Client Ver = 1.0.0 on each REALITY inbound restores connectivity, which is exactly the gate's signature; the version pairing is confirmed at both tags.
Root cause:     Upstream xray-core, infra/conf/transport_security.go, REALITYConfig.Build() — an empty minClientVer is defaulted to {26, 3, 27} (introduced in core v26.7.11, per #5922). Trigger: a REALITY inbound with Min Client Ver blank plus a client core reporting below 26.3.27. No 3x-ui defect: internal/database/model/model.go:374-388 passes streamSettings through unchanged and frontend/src/schemas/protocols/security/reality.ts:61 defaults the field to "". 3x-ui's exposure is the bundled-core pin.
Already fixed:  Yes, on the default branch, not in any release. 2ec6c736 ("feat(xray): update xray-core to v26.9.8 and adapt panel") states "REALITY no longer applies a built-in minClientVer (26.3.27) when the field is empty" and also updated the 13 locale hints; d0edbcec took the pin to v26.9.9 (DockerInit.sh:36). git tag --contains 2ec6c736 returns only dev-latest, so v3.7.0 (latest release, 2026-08-24) still ships v26.7.28 with the floor.
Duplicate of:   #5922 and #5986 share this exact root cause (both already closed as upstream). Not closed as a duplicate here because the situation changed since: the core pin on main no longer carries the floor. Related: #6090, #6034.
Evidence:       git show v3.7.0:.github/workflows/release.yml:127 and v3.7.0:DockerInit.sh:35 → "Xray-core/releases/download/v26.7.28/"; git show v3.3.1:.github/workflows/release.yml:115 → "v26.6.1" (the downgrade crosses v26.7.11). DockerInit.sh:36 on main → "v26.9.9". internal/database/model/model.go:374-388 — "streamSettings := i.StreamSettings" with only StripInboundXhttpClientFields / HealHysteriaStreamVersion applied. frontend/src/schemas/protocols/security/reality.ts:61 — "minClientVer: z.string().default('')". internal/web/service/server.go:867 — core-switcher floor "major > 26 || (major == 26 && minor > 6) || (major == 26 && minor == 6 && patch >= 27)". Tooltip before/after: git show v3.7.0:internal/web/translation/zh-CN.json:625 ("留空不等于不限制…当前版本为 26.3.27") vs main zh-CN.json:627 ("留空表示不设下限"). Reporter's confirmation in this thread: setting 1.0.0 per REALITY inbound on v3.7.0 resolved it.
Not determined: Whether the next release will simply carry the v26.9.9 pin or also seed existing blank fields — a release decision, not a code question. I could not read the xray-core source directly (the module cache is outside this checkout), so the gate's introduction in v26.7.11 rests on #5922's upstream citation and on 2ec6c736's own description of its removal.

标题我改成了更贴合实际问题的表述(原标题:「[Bug]: 默认状态下创建节点无法使用」),方便后来搜到同样问题的人。

此回复由自动化流程生成,维护者可能会跟进。

<!-- gh-comment-id:5653693254 --> @github-actions[bot] commented on GitHub (Sep 13, 2026): 确认了,就是之前推测的那条:v3.7.0 捆绑的 Xray-core **v26.7.28** 在 REALITY 的 `minClientVer` 留空时会套用内核内置下限 `26.3.27`,把版本低于它的客户端静默转给伪装目标——所以"能连上、有延迟数字、但一个字节都不走代理"。**这不是面板代码的缺陷**,面板原样透传这个字段;主分支已经通过升级内核把这个下限去掉了,但还没进正式版。你手动给每条 REALITY 入站填 `1.0.0` 是正确且目前最省事的解法。 感谢你回来复测——正是这一步把结论从推测变成了定案。 ## 版本对照(就是这条分界线) | 3x-ui 版本 | 捆绑的 Xray-core | 出处 | | --- | --- | --- | | v3.3.1(你回退的那版) | v26.6.1 | `git show v3.3.1:.github/workflows/release.yml:115` | | v3.7.0(当前最新正式版) | v26.7.28 | `git show v3.7.0:.github/workflows/release.yml:127`、`DockerInit.sh:35` | | 主分支(未发布) | v26.9.9 | `DockerInit.sh:36` | 下限是上游 v26.7.11 引入的(本仓库 #5922 定位到 `infra/conf/transport_security.go` 的 `REALITYConfig.Build()`:`else { config.MinClientVer = []byte{26, 3, 27} }`)。用 install.sh 回退面板会同时把内核降回 v26.6.1,所以"回退 3.3.1 就好了"和"另一台升上 3.7.0 就连不上"是同一件事的两面。 面板自己不碰这个字段:`internal/database/model/model.go:374-388` 把 `streamSettings` 原样写进 Xray 配置(只改写 xhttp / Hysteria 两个分支),表单默认就是空字符串(`frontend/src/schemas/protocols/security/reality.ts:61` — `minClientVer: z.string().default('')`)。v3.7.0 的字段提示其实已经写明了这个坑(`internal/web/translation/zh-CN.json:625`): > 留空不等于不限制:Xray-core 会改用所运行内核版本的内置最低值(当前版本为 26.3.27),拒绝自报版本更低的客户端——包括 Mihomo、sing-box 等第三方内核。填 1.0.0 可放行它们,代价是允许过时的 TLS 指纹。 ## 关于你的解法,两点提醒 1. 填 `1.0.0` 的代价是**放行过时的 TLS 指纹**——REALITY 原本用这个下限挡掉老客户端的可识别指纹。如果你的客户端都是新版本,更稳妥的是等下个正式版(内核到 v26.9.x 后留空即等于不限制),届时可以把这些 `1.0.0` 清回空。 2. 另一条不改入站的路子:用面板的 Xray 内核版本切换器把内核降到 **v26.6.27**(切换器的可选下限就是它,`internal/web/service/server.go:867`),面板保持 3.7.0。不建议在 3.7.0 上把内核切到 v26.9.x —— 那一代内核的配置面有不兼容改动(outbound `proxySettings` 被拒、freedom 的 `sockopt.addressPortStrategy` 被拒),面板 3.7.0 没有配套的模板迁移,内核可能起不来。 ## 主分支上的状态 `2ec6c736`(*feat(xray): update xray-core to v26.9.8 and adapt panel*)的提交说明原文: > REALITY no longer applies a built-in minClientVer (26.3.27) when the field is empty. The form placeholder and the min/max hints in all 13 locales now say that empty means no minimum. 主分支的提示文案已经改成了 `留空表示不设下限:Xray-core 接受任何客户端版本`(`internal/web/translation/zh-CN.json:627`),随后 `d0edbcec` 又升到 v26.9.9。但 `git tag --contains 2ec6c736` 只返回 `dev-latest`,所以 v3.7.0 里还没有这个变化。 既然根因已定位、上游已修复、你手上也有可用的解法,这里先关掉。等下个正式版发布后如果 REALITY 仍然连不上,欢迎回来评论,会重新打开。 ``` Verdict: Already fixed (on the default branch; unreleased) Severity: High — REALITY with Min Client Ver left blank is the panel's most common inbound shape, and every affected client fails silently (TLS handshake succeeds, traffic is diverted to the REALITY dest). Confidence: High. The reporter confirmed on v3.7.0 that setting Min Client Ver = 1.0.0 on each REALITY inbound restores connectivity, which is exactly the gate's signature; the version pairing is confirmed at both tags. Root cause: Upstream xray-core, infra/conf/transport_security.go, REALITYConfig.Build() — an empty minClientVer is defaulted to {26, 3, 27} (introduced in core v26.7.11, per #5922). Trigger: a REALITY inbound with Min Client Ver blank plus a client core reporting below 26.3.27. No 3x-ui defect: internal/database/model/model.go:374-388 passes streamSettings through unchanged and frontend/src/schemas/protocols/security/reality.ts:61 defaults the field to "". 3x-ui's exposure is the bundled-core pin. Already fixed: Yes, on the default branch, not in any release. 2ec6c736 ("feat(xray): update xray-core to v26.9.8 and adapt panel") states "REALITY no longer applies a built-in minClientVer (26.3.27) when the field is empty" and also updated the 13 locale hints; d0edbcec took the pin to v26.9.9 (DockerInit.sh:36). git tag --contains 2ec6c736 returns only dev-latest, so v3.7.0 (latest release, 2026-08-24) still ships v26.7.28 with the floor. Duplicate of: #5922 and #5986 share this exact root cause (both already closed as upstream). Not closed as a duplicate here because the situation changed since: the core pin on main no longer carries the floor. Related: #6090, #6034. Evidence: git show v3.7.0:.github/workflows/release.yml:127 and v3.7.0:DockerInit.sh:35 → "Xray-core/releases/download/v26.7.28/"; git show v3.3.1:.github/workflows/release.yml:115 → "v26.6.1" (the downgrade crosses v26.7.11). DockerInit.sh:36 on main → "v26.9.9". internal/database/model/model.go:374-388 — "streamSettings := i.StreamSettings" with only StripInboundXhttpClientFields / HealHysteriaStreamVersion applied. frontend/src/schemas/protocols/security/reality.ts:61 — "minClientVer: z.string().default('')". internal/web/service/server.go:867 — core-switcher floor "major > 26 || (major == 26 && minor > 6) || (major == 26 && minor == 6 && patch >= 27)". Tooltip before/after: git show v3.7.0:internal/web/translation/zh-CN.json:625 ("留空不等于不限制…当前版本为 26.3.27") vs main zh-CN.json:627 ("留空表示不设下限"). Reporter's confirmation in this thread: setting 1.0.0 per REALITY inbound on v3.7.0 resolved it. Not determined: Whether the next release will simply carry the v26.9.9 pin or also seed existing blank fields — a release decision, not a code question. I could not read the xray-core source directly (the module cache is outside this checkout), so the gate's introduction in v26.7.11 rests on #5922's upstream citation and on 2ec6c736's own description of its removal. ``` 标题我改成了更贴合实际问题的表述(原标题:「[Bug]: 默认状态下创建节点无法使用」),方便后来搜到同样问题的人。 *此回复由自动化流程生成,维护者可能会跟进。* <!-- claude-issue:analyst -->
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#4376
No description provided.