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:
@@ -57,6 +57,7 @@ func Convert(c *gin.Context) {
|
||||
data.SortKey,
|
||||
data.SortType,
|
||||
groupRules,
|
||||
data.UserAgent,
|
||||
)
|
||||
if err != nil {
|
||||
c.JSON(400, gin.H{
|
||||
|
||||
Reference in New Issue
Block a user