mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-19 03:25:01 +03:00
feat(xray): add the XDRIVE transport
xray-core v26.10.10 tunnels a stream through files in shared cloud
storage ("network": "xdrive"): Google Drive, a local folder, or any HTTP
storage API described by a template. The panel could not select it, and
the stream schema rejected a pasted xdrive stream outright.
The inbound and outbound forms now offer XDRIVE with one shared editor:
service, folder, the three Google Drive secrets in the order the core
reads them, a template JSON editor with its {secretN} values, the
optional domain front (the stream-level address/port the storage client
dials), and the core's tuning knobs with their defaults as placeholders.
Switching an inbound to XDRIVE resets security to none, because the
core would otherwise read the inbound's TLS/REALITY as the storage API's
client TLS.
XDRIVE has no share-link format, and a link carrying the storage
secrets would print them into every QR code, so both link generators
emit none for it; the JSON subscription already passes the stream
through intact, and Clash drops the unknown transport.
This commit is contained in:
@@ -694,7 +694,31 @@
|
||||
"custom": "自定义"
|
||||
},
|
||||
"verifyPeerCertByName": "按名称验证对端证书",
|
||||
"autoFill": "自动填充"
|
||||
"autoFill": "自动填充",
|
||||
"xdrive": {
|
||||
"service": "存储服务",
|
||||
"serviceLocal": "本地文件夹",
|
||||
"serviceTemplate": "自定义模板",
|
||||
"remoteFolder": "远程文件夹",
|
||||
"clientId": "客户端 ID",
|
||||
"clientSecret": "客户端密钥",
|
||||
"refreshToken": "刷新令牌",
|
||||
"secrets": "密钥",
|
||||
"secretsDesc": "模板中以 {secret0}、{secret1}… 引用的值",
|
||||
"template": "存储模板",
|
||||
"templateInvalid": "必须是 JSON 对象",
|
||||
"front": "前置地址",
|
||||
"frontDesc": "连接存储 API 时使用的可选主机或 IP(域前置)。",
|
||||
"frontPort": "前置端口",
|
||||
"segmentBytes": "分段大小(字节)",
|
||||
"flushInterval": "发送间隔(毫秒)",
|
||||
"pollInterval": "轮询间隔(毫秒)",
|
||||
"maxPollInterval": "最大轮询间隔(毫秒)",
|
||||
"eagerWindow": "预发窗口(毫秒)",
|
||||
"holeTimeout": "缺失分段超时(毫秒)",
|
||||
"sessionTtl": "会话 TTL(秒)",
|
||||
"concurrency": "并发数"
|
||||
}
|
||||
},
|
||||
"info": {
|
||||
"mode": "模式",
|
||||
|
||||
Reference in New Issue
Block a user