3x-ui/web
pwnnex 22de983752
xray-setting: pin api routing rule to index 0 on save (#4124)
when the admin adds a custom outbound (eg vless cascade to a second
server) and a routing rule sending all inbound traffic to it, that
catch-all gets evaluated before the existing api->api rule, so the
panel's internal stats inbound's traffic ends up on the cascade
outbound. the grpc stats query then can't see anything, GetTraffic
returns no inbound/user counters, and every client appears offline
with zero traffic even though the actual proxy path works fine.

before save, find the api rule and move it to the front of
routing.rules. if it's missing entirely, insert a default. other
rules keep their relative order.

closes #4113. probably also fixes the long-standing #2818 where the
documented workaround was "manually move the api rule to the top".
2026-04-28 17:49:39 +02:00
..
assets v2.9.3 2026-04-27 15:31:32 +02:00
controller Feature: Copy clients between inbounds (#4087) 2026-04-23 15:19:07 +02:00
entity Add SSRF protection (#4044) 2026-04-20 00:18:20 +02:00
global Refactor code and fix linter warnings (#3627) 2026-01-05 05:54:56 +01:00
html Minor changes 2026-04-27 15:02:43 +02:00
job iplimit: dont count idle db-only ips toward the per-client limit 2026-04-23 21:11:45 +03:00
locale update dependencies 2026-03-04 13:05:29 +01:00
middleware docs: add comments for all functions 2025-09-20 09:35:50 +02:00
network docs: add comments for all functions 2025-09-20 09:35:50 +02:00
service xray-setting: pin api routing rule to index 0 on save (#4124) 2026-04-28 17:49:39 +02:00
session v2.9.0 2026-04-20 21:43:49 +02:00
translation Feature: Copy clients between inbounds (#4087) 2026-04-23 15:19:07 +02:00
websocket fix: enhance WebSocket stability, resolve XHTTP configurations and fix UI loading shifts (#3997) 2026-04-19 21:01:00 +02:00
web.go DNS outbound: Add rules 2026-04-26 17:34:31 +02:00