Skip to content

fix(convert): normalize VLESS share-link transport mapping#2694

Merged
wwqgtxx merged 1 commit into
MetaCubeX:Alphafrom
slackworker:fix/vless-sharelink-transport-mapping
Apr 12, 2026
Merged

fix(convert): normalize VLESS share-link transport mapping#2694
wwqgtxx merged 1 commit into
MetaCubeX:Alphafrom
slackworker:fix/vless-sharelink-transport-mapping

Conversation

@slackworker

Copy link
Copy Markdown

Summary

This change fixes VLESS share-link transport normalization in the converter.

  • keep omitted headerType on plain tcp
  • map type=tcp&headerType=http to network=http with http-opts
  • map type=http to network=h2 with h2-opts
  • add regression coverage for all three cases

Root Cause

The share-link parser mixed transport normalization with option generation.

That caused two problems:

  • plain tcp links with no headerType could still synthesize default http-opts
  • transport aliases were not normalized consistently, so HTTP camouflage and HTTP/2 handling were not mapped to the correct option blocks

Validation

  • go test ./common/convert -run 'TestConvertsV2RayVless' -count=1

Treat tcp plus headerType=http as HTTP camouflage, map type=http to h2, and keep omitted headerType on plain tcp so share links no longer synthesize invalid http-opts.
@wwqgtxx wwqgtxx merged commit 0495d29 into MetaCubeX:Alpha Apr 12, 2026
@slackworker slackworker deleted the fix/vless-sharelink-transport-mapping branch April 13, 2026 01:07
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