Skip to content

Use mihomo's User-Agent when fetching subscriptions - #104

Merged
madeye merged 1 commit into
mainfrom
fix/subscription-mihomo-user-agent
Aug 23, 2026
Merged

Use mihomo's User-Agent when fetching subscriptions#104
madeye merged 1 commit into
mainfrom
fix/subscription-mihomo-user-agent

Conversation

@madeye

@madeye madeye commented Aug 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • Subscription fetches now send clash.meta as the User-Agent, matching mihomo's default global-ua.
  • Providers key off this token to return Clash Meta YAML (hysteria2, anytls, etc.) instead of a generic node list.
  • Replaces the previous ClashMetaForAndroid/2.11.1.Meta string.

Test plan

  • xcodebuild test (BaoLianDengTests, 211 tests) passed locally
  • Reload a subscription that serves Clash Meta YAML based on UA and confirm nodes (including hysteria2/anytls if present) come back

Providers key off the UA to return Clash Meta YAML. Send clash.meta
(mihomo's default global-ua) instead of ClashMetaForAndroid.
@madeye
madeye merged commit f1ddb0a into main Aug 23, 2026
2 checks passed
@madeye
madeye deleted the fix/subscription-mihomo-user-agent branch August 23, 2026 22:42
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