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:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user