3x-ui/web/html/modals
MHSanaei d8198f543b
fix(warp): harden API client and frontend, bump to v0a4005
Backend:
- check HTTP status on every Cloudflare API call so error bodies don't
  get parsed as success
- replace unchecked type assertions with comma-ok form (no more panics
  when Cloudflare returns an error response)
- return real errors when license/id/token fields are missing instead
  of swallowing the failure
- guard SetWarpLicense against an empty errors array
- 15s timeout on the shared http.Client
- build all request bodies and persisted state with json.Marshal
- bump API path to v0a4005 and CF-Client-Version to a-6.30-3596 to
  match the current Cloudflare WARP client

Frontend (warp_modal.html):
- remove stray </a-form-item> closing tag
- declare config/peer with const and null-check before dereferencing
- guard addOutbound/resetOutbound against missing warpOutbound
- rename getResolved -> getReserved (the array it builds is "reserved")

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-08 09:29:42 +02:00
..
client_bulk_modal.html TLS: Remove ECH Force Query 2026-05-04 13:20:24 +02:00
client_modal.html fix(security): sanitize remote IP headers and escape log viewer output 2026-05-04 16:39:29 +02:00
dns_presets_modal.html TLS: Remove ECH Force Query 2026-05-04 13:20:24 +02:00
inbound_info_modal.html refactor(vless): drop selectedAuth, expose two explicit auth buttons 2026-05-07 15:08:06 +02:00
inbound_modal.html refactor(vless): drop selectedAuth, expose two explicit auth buttons 2026-05-07 15:08:06 +02:00
nord_modal.html TLS: Remove ECH Force Query 2026-05-04 13:20:24 +02:00
prompt_modal.html TLS: Remove ECH Force Query 2026-05-04 13:20:24 +02:00
qrcode_modal.html TLS: Remove ECH Force Query 2026-05-04 13:20:24 +02:00
text_modal.html TLS: Remove ECH Force Query 2026-05-04 13:20:24 +02:00
two_factor_modal.html TLS: Remove ECH Force Query 2026-05-04 13:20:24 +02:00
warp_modal.html fix(warp): harden API client and frontend, bump to v0a4005 2026-05-08 09:29:42 +02:00
xray_balancer_modal.html TLS: Remove ECH Force Query 2026-05-04 13:20:24 +02:00
xray_dns_modal.html TLS: Remove ECH Force Query 2026-05-04 13:20:24 +02:00
xray_fakedns_modal.html TLS: Remove ECH Force Query 2026-05-04 13:20:24 +02:00
xray_outbound_modal.html refactor(xhttp): split fields by direction, expand outbound coverage 2026-05-07 19:26:40 +02:00
xray_rule_modal.html fix: get client reverse tag in the outbound 2026-05-06 00:50:40 +02:00