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:
MHSanaei
2026-10-11 08:21:08 +02:00
parent 73a028f52d
commit ca5983595b
34 changed files with 848 additions and 19 deletions
+25 -1
View File
@@ -694,7 +694,31 @@
"listen": "入站監聽地址",
"custom": "自訂"
},
"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": "模式",