feat(warp): register WARP over MASQUE from the WARP modal

xray-core's masque transport reaches Cloudflare WARP with an enrolled
ECDSA P-256 key, the endpoint's public key and the assigned tunnel
addresses, which only a WARP enrollment hands out.

A new regMasque action on /panel/api/xray/warp/:action registers a
separate WARP device and enrolls a secp256r1 key for the masque tunnel
(the API revision and client version the WARP apps enroll MASQUE keys
with). Enrolling replaces a device's WireGuard key, so it never touches
the stored WireGuard registration. It returns the PEM key pair, the
addresses and the endpoint, and the WARP modal turns them into a
warp-masque outbound (HTTP/3, Cloudflare's MASQUE SNI), or refreshes
the one already there.
This commit is contained in:
MHSanaei committed 2026-10-11 10:31:01 +02:00
1 parent b04039c2bd
commit 04cccef311
25 files changed
+477 -16

No files matched your search

+5
View File
@@ -40,6 +40,11 @@ Pick **masque** as the outbound protocol, then set:
## WARP over MASQUE
The quickest way is **Xray → Outbounds → WARP → Add WARP over MASQUE outbound**: the panel
registers a separate WARP device, enrolls a MASQUE key for it and adds a ready `warp-masque`
outbound (or refreshes the existing one). Your WireGuard WARP registration is not touched.
To set it up by hand instead:
Turn on **WARP** in the masque transport to reach Cloudflare WARP through its MASQUE
endpoint instead of WireGuard. It takes a WARP registration enrolled for MASQUE:
+5
View File
@@ -40,6 +40,11 @@ icon: Waypoints
## WARP از طریق MASQUE
ساده‌ترین راه **Xray ← Outbounds ← WARP ← افزودن outbound برای WARP روی MASQUE** است: پنل یک
دستگاه WARP جداگانه ثبت می‌کند، برای آن کلید MASQUE ثبت می‌کند و یک outbound آمادهٔ `warp-masque`
اضافه می‌کند (یا outbound موجود را تازه می‌کند). ثبت WARP وایرگارد شما دست نمی‌خورد.
برای راه‌اندازی دستی:
**WARP** را در transport مربوط به masque روشن کنید تا به‌جای WireGuard از طریق endpoint
مخصوص MASQUE به Cloudflare WARP برسید. این کار به یک ثبت‌نام WARP نیاز دارد که برای MASQUE
ثبت شده باشد:
+5
View File
@@ -40,6 +40,11 @@ icon: Waypoints
## WARP через MASQUE
Проще всего: **Xray → Аутбаунды → WARP → Добавить аутбаунд WARP через MASQUE** — панель
регистрирует отдельное устройство WARP, привязывает к нему ключ MASQUE и добавляет готовый
аутбаунд `warp-masque` (или обновляет существующий). Регистрация WARP для WireGuard не меняется.
Для ручной настройки:
Включите **WARP** в транспорте masque, чтобы подключаться к Cloudflare WARP через его
MASQUE-эндпоинт вместо WireGuard. Для этого нужна регистрация WARP, привязанная к MASQUE:
Loaded 3 of 25 files, more files were not shown because too many files have changed in this diff. Show more