feat(outbounds): support custom subscription user agents (#6398)

Some subscription providers require a client-specific User-Agent before returning outbound links. Persist an optional value per subscription and use it for refreshes and previews while preserving the existing default for blank values.
This commit is contained in:
Timur Chernykh authored and GitHub committed 2026-09-11 15:32:04 +02:00
1 parent 89ee1242bd
commit 9f07951ba7
22 files changed
+134 -9

No files matched your search

+14
View File
@@ -13569,6 +13569,11 @@
"type": "string",
"description": "Prefix for generated outbound tags. Defaults to the lowest free \"sub<N>-\" prefix."
},
"userAgent": {
"type": "string",
"default": "3x-ui-outbound-sub/1.0",
"description": "Custom User-Agent sent when fetching this subscription. Defaults to \"3x-ui-outbound-sub/1.0\"."
},
"updateInterval": {
"type": "integer",
"default": 600,
@@ -13662,6 +13667,11 @@
"type": "string",
"description": "Prefix for generated outbound tags. Defaults to the lowest free \"sub<N>-\" prefix."
},
"userAgent": {
"type": "string",
"default": "3x-ui-outbound-sub/1.0",
"description": "Custom User-Agent sent when fetching this subscription. Defaults to \"3x-ui-outbound-sub/1.0\"."
},
"updateInterval": {
"type": "integer",
"default": 600,
@@ -13914,6 +13924,10 @@
"type": "string",
"description": "Subscription URL to preview (required)."
},
"userAgent": {
"type": "string",
"description": "Custom User-Agent sent while fetching the preview."
},
"allowPrivate": {
"type": "boolean",
"description": "Allow a private/internal/loopback URL. Default false."