Skip to content

fix(vless): default xhttp padding to 100-1000 when not set#2647

Merged
wwqgtxx merged 1 commit into
MetaCubeX:Alphafrom
Nemu-x:fix/xhttp-padding-default
Mar 27, 2026
Merged

fix(vless): default xhttp padding to 100-1000 when not set#2647
wwqgtxx merged 1 commit into
MetaCubeX:Alphafrom
Nemu-x:fix/xhttp-padding-default

Conversation

@Nemu-x

@Nemu-x Nemu-x commented Mar 27, 2026

Copy link
Copy Markdown

Summary

Follow-up fix for xhttp padding behavior.

When x-padding-bytes is not explicitly set, Mihomo should still use the default Xray-compatible range 100-1000.

Without this, stream-one mode may return 400 Bad Request against servers expecting default padding behavior.

Verification

  • go build ./...
  • go test ./listener/inbound -run XHTTP -v
  • tested locally using a real VLESS+XHTTP config with x-padding-bytes removed
  • confirmed that the connection succeeds without explicitly setting padding
  • previously this case returned xhttp stream-one bad status: 400 Bad Request

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