1
0
mirror of https://github.com/bestnite/sub2sing-box.git synced 2026-06-08 16:04:43 +00:00
Files
sub2sing-box/model/convert.go
T
nite 2a98e7c1f0 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
2026-05-23 18:41:55 +10:00

17 lines
828 B
Go
Executable File

package model
type ConvertRequest struct {
Subscriptions []string `form:"subscription" json:"subscription"`
Proxies []string `form:"proxy" json:"proxy"`
Template string `form:"template" json:"template"`
Delete string `form:"delete" json:"delete"`
Rename map[string]string `form:"rename" json:"rename"`
Group bool `form:"group" json:"group"`
GroupType string `form:"group-type" json:"group-type"`
SortKey string `form:"sort" json:"sort"`
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"`
}