Skip to content

feat: add xtls-rprx-vision-udp443 flow support#335

Open
KlimSemikin wants to merge 2 commits intoPasarGuard:devfrom
KlimSemikin:main
Open

feat: add xtls-rprx-vision-udp443 flow support#335
KlimSemikin wants to merge 2 commits intoPasarGuard:devfrom
KlimSemikin:main

Conversation

@KlimSemikin
Copy link
Copy Markdown

@KlimSemikin KlimSemikin commented Mar 29, 2026

Introduced support for xtls-rprx-vision-udp443 flow across backend and frontend

Since this flow is client-specific and not supported by Xray inbound configuration, it is replaced with xtls-rprx-vision when generating node configs

Summary by CodeRabbit

Release Notes

  • New Features
    • Added 'xtls-rprx-vision-udp443' as a new VLESS flow option for proxy configuration. Users can now select this new flow type when creating or modifying proxies and user templates. The option is fully integrated across all proxy configuration interfaces and provides seamless compatibility with existing proxy settings.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 29, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e453b1aa-83d3-4f9b-9673-858383cece6d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Walkthrough

A new VLESS flow option xtls-rprx-vision-udp443 is introduced across backend and frontend. The backend adds the enum value, normalizes it to xtls-rprx-vision during proxy creation, and the frontend updates validation schemas and UI dropdowns to support user selection of this flow.

Changes

Cohort / File(s) Summary
Backend Enum & Flow Normalization
app/models/proxy.py, app/node/user.py
Added VISION_UDP enum value to XTLSFlows and implemented normalization logic that converts the UDP flow to standard vision flow during proxy creation.
Frontend Type Definitions
dashboard/src/service/api/index.ts
Extended the XTLSFlows exported constant and type union to include the new 'xtls-rprx-vision-udp443' flow value.
Frontend Form Validation Schemas
dashboard/src/components/forms/user-form.ts, dashboard/src/components/forms/user-template-form.ts
Updated Zod enum validators to accept the new flow option alongside existing values.
Frontend UI Components
dashboard/src/components/dialogs/user-modal.tsx, dashboard/src/components/dialogs/user-template-modal.tsx
Added new SelectItem options in flow dropdown menus and expanded TypeScript type annotations to include the new flow value.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 A new flow springs forth, called vision-udp,
Through schemas and forms it finds its way up,
From backend to dashboard, the changes align,
Normalized, validated, simply divine! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'feat: add xtls-rprx-vision-udp443 flow support' directly and clearly summarizes the main change: adding support for a new XTLS flow type across the codebase.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ImMohammad20000
Copy link
Copy Markdown
Contributor

Change target branch to dev

@KlimSemikin KlimSemikin marked this pull request as draft March 29, 2026 07:41
@KlimSemikin KlimSemikin changed the base branch from main to dev March 29, 2026 07:42
@KlimSemikin KlimSemikin marked this pull request as ready for review March 29, 2026 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants