[PR #6985] feat(tuic): add client SNI control and export 0-RTT settings #6563

Open
opened 2026-11-02 04:09:39 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/6985
Author: @poise52
Created: 10/28/2026
Status: 🔄 Open

Base: main ← Head: fix/tuic-client-tls-options


📝 Commits (3)

  • 5d3b756 feat(tuic): add client SNI control and export 0-RTT settings
  • 38f5f66 docs(tuic): clarify Mihomo version required for SNI-free certificate verification
  • 287f605 fix(tuic): require explicit opt-in for Disable SNI in share links

📊 Changes

38 files changed (+495 additions, -8 deletions)

View changed files

📝 docs/content/docs/en/config/tuic.mdx (+17 -3)
📝 docs/content/docs/ru/config/tuic.mdx (+16 -2)
📝 docs/public/openapi.json (+8 -0)
📝 frontend/public/openapi.json (+8 -0)
📝 frontend/src/generated/examples.ts (+2 -0)
📝 frontend/src/generated/schemas.ts (+8 -0)
📝 frontend/src/generated/types.ts (+2 -0)
📝 frontend/src/generated/zod.ts (+2 -0)
📝 frontend/src/lib/xray/inbound-defaults.ts (+2 -0)
📝 frontend/src/lib/xray/inbound-link.ts (+4 -0)
📝 frontend/src/pages/clients/tuicConfig.ts (+7 -0)
📝 frontend/src/pages/inbounds/form/protocols/tuic.tsx (+30 -0)
📝 frontend/src/schemas/client.ts (+2 -0)
📝 frontend/src/schemas/protocols/inbound/tuic.ts (+4 -0)
📝 frontend/src/test/tuic-client-config.test.ts (+30 -0)
📝 frontend/src/test/tuic-legacy-form.test.tsx (+49 -1)
➕ frontend/src/test/tuic-profile-options.test.ts (+116 -0)
📝 internal/sub/clash_service.go (+14 -0)
📝 internal/sub/service.go (+7 -0)
➕ internal/sub/tuic_tls_options_test.go (+87 -0)

...and 18 more files

📄 Description

Summary

  • Add a client-side “Disable SNI” option for TUIC.
  • Export SNI and 0-RTT settings in share links and Clash/Mihomo configurations.
  • Preserve certificate verification in Mihomo YAML using name-cert-verify.
  • Update translations, API schemas and EN/RU documentation.

Why

Allow clients to receive these settings without manual configuration edits.

Refs #6861.

NekoBox ignores 0-RTT URI parameters; use Clash YAML/subscriptions to import both settings.

Type of change

New feature, documentation and tests.

Areas affected

Frontend, backend settings and subscription exports.

How was this tested?

  • Full Go suite and race tests for TUIC, subscriptions and services.
  • Full frontend suite: 1851 tests, including Chromium.
  • Typecheck, lint, formatting, frontend/Go/Storybook builds and docs typecheck.
  • Local QUIC diagnostic confirmed connections without SNI and rejection of an incorrect certificate hostname.

Breaking changes

None. Existing 0-RTT settings are preserved; Disable SNI defaults to false. No database migration is required.


🔄 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/6985 **Author:** [@poise52](https://github.com/poise52) **Created:** 10/28/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/tuic-client-tls-options` --- ### 📝 Commits (3) - [`5d3b756`](https://github.com/MHSanaei/3x-ui/commit/5d3b7564a53ebfef5d22346a3068390b2876d7fb) feat(tuic): add client SNI control and export 0-RTT settings - [`38f5f66`](https://github.com/MHSanaei/3x-ui/commit/38f5f666b5e31a6cea61e2ca7aff5eff12e9d0ff) docs(tuic): clarify Mihomo version required for SNI-free certificate verification - [`287f605`](https://github.com/MHSanaei/3x-ui/commit/287f605537923cd60244879b96dc17c0f75687b2) fix(tuic): require explicit opt-in for Disable SNI in share links ### 📊 Changes **38 files changed** (+495 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/en/config/tuic.mdx` (+17 -3) 📝 `docs/content/docs/ru/config/tuic.mdx` (+16 -2) 📝 `docs/public/openapi.json` (+8 -0) 📝 `frontend/public/openapi.json` (+8 -0) 📝 `frontend/src/generated/examples.ts` (+2 -0) 📝 `frontend/src/generated/schemas.ts` (+8 -0) 📝 `frontend/src/generated/types.ts` (+2 -0) 📝 `frontend/src/generated/zod.ts` (+2 -0) 📝 `frontend/src/lib/xray/inbound-defaults.ts` (+2 -0) 📝 `frontend/src/lib/xray/inbound-link.ts` (+4 -0) 📝 `frontend/src/pages/clients/tuicConfig.ts` (+7 -0) 📝 `frontend/src/pages/inbounds/form/protocols/tuic.tsx` (+30 -0) 📝 `frontend/src/schemas/client.ts` (+2 -0) 📝 `frontend/src/schemas/protocols/inbound/tuic.ts` (+4 -0) 📝 `frontend/src/test/tuic-client-config.test.ts` (+30 -0) 📝 `frontend/src/test/tuic-legacy-form.test.tsx` (+49 -1) ➕ `frontend/src/test/tuic-profile-options.test.ts` (+116 -0) 📝 `internal/sub/clash_service.go` (+14 -0) 📝 `internal/sub/service.go` (+7 -0) ➕ `internal/sub/tuic_tls_options_test.go` (+87 -0) _...and 18 more files_ </details> ### 📄 Description ## Summary - Add a client-side “Disable SNI” option for TUIC. - Export SNI and 0-RTT settings in share links and Clash/Mihomo configurations. - Preserve certificate verification in Mihomo YAML using `name-cert-verify`. - Update translations, API schemas and EN/RU documentation. ## Why Allow clients to receive these settings without manual configuration edits. Refs #6861. NekoBox ignores 0-RTT URI parameters; use Clash YAML/subscriptions to import both settings. ## Type of change New feature, documentation and tests. ## Areas affected Frontend, backend settings and subscription exports. ## How was this tested? - Full Go suite and race tests for TUIC, subscriptions and services. - Full frontend suite: 1851 tests, including Chromium. - Typecheck, lint, formatting, frontend/Go/Storybook builds and docs typecheck. - Local QUIC diagnostic confirmed connections without SNI and rejection of an incorrect certificate hostname. ## Breaking changes None. Existing 0-RTT settings are preserved; Disable SNI defaults to false. No database migration is required. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#6563
No description provided.