Skip to content

feat: support custom User-Agent for subscriptions#937

Open
zzzsyyy wants to merge 2 commits into
daeuniverse:legacyfrom
zzzsyyy:feat/ua_support
Open

feat: support custom User-Agent for subscriptions#937
zzzsyyy wants to merge 2 commits into
daeuniverse:legacyfrom
zzzsyyy:feat/ua_support

Conversation

@zzzsyyy
Copy link
Copy Markdown
Contributor

@zzzsyyy zzzsyyy commented Feb 17, 2026

Background

Some providers return different node formats based on the User-Agent header.

This PR adds custom User-Agent support for subscriptions with two methods:

  1. Global setting: Set subscription_user_agent in the global section, which applies to all subscriptions
  2. Per-subscription setting: Set via URL fragment (e.g., https://example.com/sub#ua=xxx), which takes priority over the global setting

Checklist

Full Changelogs

  • feat(subscription): support custom User-Agent for fetching subscriptions
  • feat(config): add subscription_user_agent option in global section
  • feat(subscription): support per-subscription User-Agent via URL fragment (#ua=xxx)

Issue Reference

Closes #929 Closes #515

Test Result

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants