Skip to content

feat: round-trip cipherSuites in share links and VMess QR code - #3

Merged
patterniha merged 1 commit into
masterfrom
fix/cipher-suites-followup
Jul 10, 2026
Merged

feat: round-trip cipherSuites in share links and VMess QR code#3
patterniha merged 1 commit into
masterfrom
fix/cipher-suites-followup

Conversation

@patterniha

Copy link
Copy Markdown
Owner

Follow-up to #1 and #2. This commit was pushed to the fix/cipher-suites-followup branch after #2 had already been merged, so it never landed in master — this PR picks it up.

What changed

The fork already round-trips its custom TLS fields (ech, vcn, pcs, pqv) through share-link query parameters and the VMess QR-code JSON, but cipherSuites was missing, so sharing or exporting a profile silently dropped the setting.

  • FmtBase.getItemFormQuery / getQueryDic: import and export a cs query parameter (emitted only when non-blank, matching the existing pattern).
  • VmessQRCode: new cs field in the QR-code JSON DTO.
  • VmessFmt.parse / toUri: map cs to ProfileItem.cipherSuites in both directions.

Note for reviewers

The matching cs key is not yet supported by the v2rayN fork's BaseFmt.cs, so links carrying cs= interop with v2rayN only once the same key is added there.

🤖 Generated with Claude Code

The fork already round-trips its custom TLS fields (ech, vcn, pcs, pqv)
through share-link query parameters and the VMess QR-code JSON, but
cipherSuites was missing, so sharing a profile silently dropped it.

Add a "cs" query parameter to FmtBase import/export and a "cs" field to
VmessQRCode, mapped in VmessFmt parse/toUri, following the existing
pattern (emitted only when non-blank).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

1 participant