feat(subscription): add xhttp support for Clash Meta subscriptions#347
feat(subscription): add xhttp support for Clash Meta subscriptions#347M03ED merged 2 commits intoPasarGuard:devfrom
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
Splithttp is old name of xhttp, you have to remove that too |
|
And I think you should parse download settings into a clash acceptable format |
Thanks. I already fixed For If you want, I can still add explicit normalization for the nested |
|
Can you send the document of xhttp for clash meta |
|
There is no dedicated public documentation page for The references I used are based on the actual Mihomo implementation and related PRs where
From these changes, So the current output shape follows the actual Mihomo config structure. I also tested the generated config with Mihomo 1.19.22 (Clash Verge), and it is accepted and works correctly. If needed, I can still add explicit normalization for |
Summary
Adds xhttp transport support for Clash Meta subscription output.
Motivation
Recent Mihomo (Clash Meta) releases introduced support for xhttp transport, which is already used in modern VLESS deployments.
This PR enables PasarGuard to generate compatible configurations for clients supporting xhttp.
Changes
XHTTPTransportConfigxhttptransport handler_transport_xhttpClashMetaConfigurationReferences