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 @@
"bytesPerSecTip": "حد السرعة (بايت/ثانية) المطبّق على مرور الـ fallback بعد العتبة، عشان الفحوصات ماتقدرش تستخدم سيرفرك كنطاق ترددي مجاني للهدف. 0 = بلا حد (بيعطّل الاتجاه ده).",
"burstBytesPerSec": "بايت في الثانية للدفقة",
"burstBytesPerSecTip": "السماح بدفقات قصيرة فوق المعدل الثابت (حجم token-bucket). لو أقل من بايت في الثانية بيترفع ليطابقه.",
"autoFill": "الملء التلقائي"
"autoFill": "الملء التلقائي",
"xdrive": {
"service": "خدمة التخزين",
"serviceLocal": "مجلد محلي",
"serviceTemplate": "قالب مخصص",
"remoteFolder": "المجلد البعيد",
"clientId": "Client ID",
"clientSecret": "Client Secret",
"refreshToken": "Refresh Token",
"secrets": "الأسرار",
"secretsDesc": "قيم يقرؤها القالب باسم {secret0} و{secret1} …",
"template": "قالب التخزين",
"templateInvalid": "يجب أن يكون كائن JSON",
"front": "عنوان الواجهة (Front)",
"frontDesc": "مضيف أو IP اختياري يُتصل عبره بواجهة API التخزين (domain fronting).",
"frontPort": "منفذ الواجهة (Front)",
"segmentBytes": "حجم المقطع (بايت)",
"flushInterval": "فاصل الإرسال (ms)",
"pollInterval": "فاصل الاستطلاع (ms)",
"maxPollInterval": "أقصى فاصل استطلاع (ms)",
"eagerWindow": "نافذة الإرسال المبكر (ms)",
"holeTimeout": "مهلة المقطع المفقود (ms)",
"sessionTtl": "مدة صلاحية الجلسة (s)",
"concurrency": "التزامن"
}
},
"info": {
"mode": "الوضع",