[PR #6125] [MERGED] fix(ui): explain the REALITY client version gate and drop the impossible placeholder #6086

Closed
opened 2026-11-02 04:06:16 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/6125
Author: @PathGao
Created: 7/28/2026
Status: ✅ Merged
Merged: 7/28/2026
Merged by: @MHSanaei

Base: main ← Head: docs-reality-min-client-ver


📝 Commits (3)

  • 2508431 fix(ui): explain the REALITY client version gate and drop the impossible placeholder
  • 9765951 docs(reality): warn that an empty min client version rejects old cores
  • 01cc6d6 fix(ui): word the version hints against the effective minimum

📊 Changes

18 files changed (+52 additions, -1 deletions)

View changed files

📝 docs/content/docs/en/config/reality.mdx (+7 -0)
📝 docs/content/docs/fa/config/reality.mdx (+7 -0)
📝 docs/content/docs/ru/config/reality.mdx (+8 -0)
📝 docs/content/docs/zh/config/reality.mdx (+1 -0)
📝 frontend/src/pages/inbounds/form/security/reality.tsx (+3 -1)
📝 internal/web/translation/ar-EG.json (+2 -0)
📝 internal/web/translation/en-US.json (+2 -0)
📝 internal/web/translation/es-ES.json (+2 -0)
📝 internal/web/translation/fa-IR.json (+2 -0)
📝 internal/web/translation/id-ID.json (+2 -0)
📝 internal/web/translation/ja-JP.json (+2 -0)
📝 internal/web/translation/pt-BR.json (+2 -0)
📝 internal/web/translation/ru-RU.json (+2 -0)
📝 internal/web/translation/tr-TR.json (+2 -0)
📝 internal/web/translation/uk-UA.json (+2 -0)
📝 internal/web/translation/vi-VN.json (+2 -0)
📝 internal/web/translation/zh-CN.json (+2 -0)
📝 internal/web/translation/zh-TW.json (+2 -0)

📄 Description

Summary

Surface the hidden REALITY client-version gate in the panel: add tooltips to Min Client Ver / Max Client Ver explaining that an empty minimum is not "no limit", remove the impossible 25.9.11 placeholder from Max Client Ver, and add the pitfall to the REALITY docs in all four languages.

Why

When minClientVer is left empty, 3x-ui passes it through untouched — and Xray-core then falls back to a hardcoded built-in minimum (infra/conf/transport_security.go, currently 26.3.27):

} else {
    config.MinClientVer = []byte{26, 3, 27}
}

Third-party cores such as Mihomo and sing-box report versions far below that, so they fail REALITY verification even with a perfectly correct config. The user-visible symptom is timeouts in those apps while Xray-core based clients connect fine — and nothing in the panel or docs points at this field. (Real case: Hiddify/sing-box and Clash/mihomo both timing out against a fresh REALITY inbound; setting Min Client Ver to 1.0.0 immediately fixed both.) Upstream considers the gate intentional TLS-fingerprint-freshness protection (XTLS/Xray-core#6477 was closed as not planned), so this PR deliberately does not change any default behavior — it only makes the gate visible and explains the trade-off of lowering it.

Separately, the Max Client Ver placeholder was 25.9.11, which is below the built-in minimum 26.3.27 shown next to it. A user who fills in both placeholders as written gets a version range that rejects every client. It looks like a stale example from before the 26.x gate was introduced. Since an empty max genuinely means "no upper limit", the placeholder is removed rather than replaced.

Type of change

  • Bug fix (misleading placeholder producing an impossible version range)
  • Documentation

Areas affected

  • Frontend (UI / panel pages)

How was this tested?

  • Local panel (go run . + built frontend): opened Add Inbound → Security → Reality, hovered both tooltip icons — the hint text renders correctly, the Min Client Ver placeholder still shows 26.3.27, and the Max Client Ver placeholder is gone (verified via DOM: input.placeholder === "").
  • The new minClientVerHint / maxClientVerHint keys were added to all 13 locale files; a script asserted key presence and JSON validity across every file.
  • make verify passes locally (gen diff clean, golangci-lint, Go tests, frontend lint/typecheck/tests/build, storybook build).
  • No behavior change anywhere: no schema, wire-format, or backend changes; frontend/src/generated and openapi.json are untouched.

Screenshots / recordings

The only visible changes are a question-circle tooltip icon next to both version fields (hover shows the explanation) and the removed Max Client Ver placeholder. Happy to attach a screenshot on request.

Breaking changes

None.

Behavior notes for reviewers:

  • The tooltip and docs quote the concrete built-in version (26.3.27) because that is what users need to recognize the symptom; both are worded with "currently / at the time of writing" so they age gracefully if the core bumps the gate. The value matches the existing Min Client Ver placeholder, which already tracked it.
  • Removing the Max Client Ver placeholder is a deliberate visible change: empty is the correct "no upper limit" state, and any concrete example number next to a hardcoded lower gate risks going stale again.

Checklist

  • I tested the change locally and confirmed the described behavior.
  • I added or updated tests for the new behavior (not applicable — tooltip copy, a placeholder removal, and docs; no behavior to pin)
  • go build ./... and the test suite pass locally.
  • For frontend changes: npm run lint, npm run typecheck, and npm run build pass.
  • I updated the Wiki / README / API docs if user-facing behavior changed (REALITY docs page, all 4 languages).
  • My commits follow the project's existing message style.
  • I have no unrelated changes mixed into this PR.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/6125 **Author:** [@PathGao](https://github.com/PathGao) **Created:** 7/28/2026 **Status:** ✅ Merged **Merged:** 7/28/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `docs-reality-min-client-ver` --- ### 📝 Commits (3) - [`2508431`](https://github.com/MHSanaei/3x-ui/commit/250843134adb0788c1c029b2891194d87685f78d) fix(ui): explain the REALITY client version gate and drop the impossible placeholder - [`9765951`](https://github.com/MHSanaei/3x-ui/commit/9765951b9b3d42a487e052ad46fecdade8eeb286) docs(reality): warn that an empty min client version rejects old cores - [`01cc6d6`](https://github.com/MHSanaei/3x-ui/commit/01cc6d67c8f906e2a276deba51d03b7027d1e7e3) fix(ui): word the version hints against the effective minimum ### 📊 Changes **18 files changed** (+52 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/en/config/reality.mdx` (+7 -0) 📝 `docs/content/docs/fa/config/reality.mdx` (+7 -0) 📝 `docs/content/docs/ru/config/reality.mdx` (+8 -0) 📝 `docs/content/docs/zh/config/reality.mdx` (+1 -0) 📝 `frontend/src/pages/inbounds/form/security/reality.tsx` (+3 -1) 📝 `internal/web/translation/ar-EG.json` (+2 -0) 📝 `internal/web/translation/en-US.json` (+2 -0) 📝 `internal/web/translation/es-ES.json` (+2 -0) 📝 `internal/web/translation/fa-IR.json` (+2 -0) 📝 `internal/web/translation/id-ID.json` (+2 -0) 📝 `internal/web/translation/ja-JP.json` (+2 -0) 📝 `internal/web/translation/pt-BR.json` (+2 -0) 📝 `internal/web/translation/ru-RU.json` (+2 -0) 📝 `internal/web/translation/tr-TR.json` (+2 -0) 📝 `internal/web/translation/uk-UA.json` (+2 -0) 📝 `internal/web/translation/vi-VN.json` (+2 -0) 📝 `internal/web/translation/zh-CN.json` (+2 -0) 📝 `internal/web/translation/zh-TW.json` (+2 -0) </details> ### 📄 Description ## Summary Surface the hidden REALITY client-version gate in the panel: add tooltips to **Min Client Ver** / **Max Client Ver** explaining that an empty minimum is not "no limit", remove the impossible `25.9.11` placeholder from Max Client Ver, and add the pitfall to the REALITY docs in all four languages. ## Why When `minClientVer` is left empty, 3x-ui passes it through untouched — and Xray-core then falls back to a hardcoded built-in minimum (`infra/conf/transport_security.go`, currently `26.3.27`): ```go } else { config.MinClientVer = []byte{26, 3, 27} } ``` Third-party cores such as Mihomo and sing-box report versions far below that, so they fail REALITY verification even with a perfectly correct config. The user-visible symptom is timeouts in those apps while Xray-core based clients connect fine — and nothing in the panel or docs points at this field. (Real case: Hiddify/sing-box and Clash/mihomo both timing out against a fresh REALITY inbound; setting Min Client Ver to `1.0.0` immediately fixed both.) Upstream considers the gate intentional TLS-fingerprint-freshness protection (XTLS/Xray-core#6477 was closed as not planned), so this PR deliberately does **not** change any default behavior — it only makes the gate visible and explains the trade-off of lowering it. Separately, the **Max Client Ver** placeholder was `25.9.11`, which is *below* the built-in minimum `26.3.27` shown next to it. A user who fills in both placeholders as written gets a version range that rejects every client. It looks like a stale example from before the 26.x gate was introduced. Since an empty max genuinely means "no upper limit", the placeholder is removed rather than replaced. ## Type of change - [x] Bug fix (misleading placeholder producing an impossible version range) - [x] Documentation ## Areas affected - [x] Frontend (UI / panel pages) ## How was this tested? - Local panel (`go run .` + built frontend): opened Add Inbound → Security → Reality, hovered both tooltip icons — the hint text renders correctly, the Min Client Ver placeholder still shows `26.3.27`, and the Max Client Ver placeholder is gone (verified via DOM: `input.placeholder === ""`). - The new `minClientVerHint` / `maxClientVerHint` keys were added to **all 13 locale files**; a script asserted key presence and JSON validity across every file. - `make verify` passes locally (gen diff clean, golangci-lint, Go tests, frontend lint/typecheck/tests/build, storybook build). - No behavior change anywhere: no schema, wire-format, or backend changes; `frontend/src/generated` and `openapi.json` are untouched. ## Screenshots / recordings The only visible changes are a question-circle tooltip icon next to both version fields (hover shows the explanation) and the removed Max Client Ver placeholder. Happy to attach a screenshot on request. ## Breaking changes None. Behavior notes for reviewers: - The tooltip and docs quote the concrete built-in version (`26.3.27`) because that is what users need to recognize the symptom; both are worded with "currently / at the time of writing" so they age gracefully if the core bumps the gate. The value matches the existing Min Client Ver placeholder, which already tracked it. - Removing the Max Client Ver placeholder is a deliberate visible change: empty is the correct "no upper limit" state, and any concrete example number next to a hardcoded lower gate risks going stale again. ## Checklist - [x] I tested the change locally and confirmed the described behavior. - [ ] I added or updated tests for the new behavior (not applicable — tooltip copy, a placeholder removal, and docs; no behavior to pin) - [x] `go build ./...` and the test suite pass locally. - [x] For frontend changes: `npm run lint`, `npm run typecheck`, and `npm run build` pass. - [x] I updated the Wiki / README / API docs if user-facing behavior changed (REALITY docs page, all 4 languages). - [x] My commits follow the project's existing message style. - [x] I have no unrelated changes mixed into this PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:06:16 +07:00
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#6086
No description provided.