Skip to content

fix: export VLESS reality-opts when short-id is not present#49

Open
amorlzu wants to merge 1 commit intoMetaCubeX:masterfrom
amorlzu:fix/vless-reality-export-without-shortid
Open

fix: export VLESS reality-opts when short-id is not present#49
amorlzu wants to merge 1 commit intoMetaCubeX:masterfrom
amorlzu:fix/vless-reality-export-without-shortid

Conversation

@amorlzu
Copy link
Copy Markdown

@amorlzu amorlzu commented Mar 17, 2026

Previously, the export code required both public-key AND short-id to be present before exporting reality-opts and client-fingerprint. This caused configurations with only public-key (without short-id) to lose the entire REALITY configuration during conversion.

Changes:

  • Changed condition to only require public-key (short-id is optional)
  • short-id is now only output if present
  • client-fingerprint is properly exported when REALITY is used
  • For sing-box format, use parsed ClientFingerprint instead of random

Fixes issue where VLESS REALITY configs lost public-key and client-fingerprint fields during format conversion.

Previously, the export code required both public-key AND short-id to be
present before exporting reality-opts and client-fingerprint. This caused
configurations with only public-key (without short-id) to lose the entire
REALITY configuration during conversion.

Changes:
- Changed condition to only require public-key (short-id is optional)
- short-id is now only output if present
- client-fingerprint is properly exported when REALITY is used
- For sing-box format, use parsed ClientFingerprint instead of random

Fixes issue where VLESS REALITY configs lost public-key and client-fingerprint
fields during format conversion.

Co-Authored-By: Claude Opus 4.6 <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