1
0
mirror of https://github.com/bestnite/sub2sing-box.git synced 2026-06-08 16:04:43 +00:00

feat: add custom User-Agent support for subscription and template requests

Add --user-agent / -u CLI flag and user-agent config field to allow
customizing the User-Agent header when fetching subscriptions and
remote templates. This is useful for providers that require a specific
UA to access their subscription links.

Closes #23
This commit is contained in:
2026-05-23 18:41:55 +10:00
parent b63662347a
commit 2a98e7c1f0
6 changed files with 28 additions and 10 deletions
+1
View File
@@ -12,4 +12,5 @@ type ConvertRequest struct {
SortType string `form:"sort-type" json:"sort-type"`
Output string `json:"output"`
GroupRules string `form:"group-rules" json:"group-rules"`
UserAgent string `form:"user-agent" json:"user-agent"`
}