3x-ui/web/service
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
..
config.json dokodemo-door, socks renamed to mixed, tunnel 2025-09-09 13:57:40 +02:00
custom_geo.go Add SSRF protection (#4044) 2026-04-20 00:18:20 +02:00
custom_geo_test.go Add SSRF protection (#4044) 2026-04-20 00:18:20 +02:00
inbound.go fix(vless): scope testseed to xtls-rprx-vision flow 2026-05-07 14:44:33 +02:00
nord.go feat: Add NordVPN NordLynx (WireGuard) integration (#3827) 2026-04-20 00:41:50 +02:00
outbound.go fix security issue 2026-02-09 23:36:10 +01:00
panel.go feat: add panel update functionality via web GUI (#4117) 2026-04-28 18:46:55 +02:00
panel_other.go feat: add panel update functionality via web GUI (#4117) 2026-04-28 18:46:55 +02:00
panel_test.go feat: add panel update functionality via web GUI (#4117) 2026-04-28 18:46:55 +02:00
panel_unix.go feat: add panel update functionality via web GUI (#4117) 2026-04-28 18:46:55 +02:00
port_conflict.go inbound: check transport in port conflict, allow tcp and udp on same port (#4169) 2026-05-06 11:41:21 +02:00
port_conflict_test.go inbound: check transport in port conflict, allow tcp and udp on same port (#4169) 2026-05-06 11:41:21 +02:00
server.go Exclude virtual interfaces from network stats 2026-05-06 17:28:41 +02:00
setting.go feat: add configurable auto-restart on client auto-disable 2026-05-04 23:19:25 +02:00
tgbot.go Implement CSRF protection and security hardening across the application (#4179) 2026-05-07 23:36:11 +02:00
tgbot_test.go Implement CSRF protection and security hardening across the application (#4179) 2026-05-07 23:36:11 +02:00
user.go Add Go code analyzer workflow 2026-03-17 23:01:15 +01:00
warp.go fix(warp): harden API client and frontend, bump to v0a4005 2026-05-08 09:29:42 +02:00
websocket.go refactor(websocket): split controller into service + thin controller 2026-05-08 00:00:44 +02:00
xray.go new: vless reverse 2026-05-05 21:00:03 +02:00
xray_setting.go xray-setting: pin api routing rule to index 0 on save (#4124) 2026-04-28 17:49:39 +02:00
xray_setting_test.go xray-setting: pin api routing rule to index 0 on save (#4124) 2026-04-28 17:49:39 +02:00