Files
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
..
2026-04-27 15:31:32 +02:00
2026-04-20 00:18:20 +02:00
2026-04-27 15:02:43 +02:00
2026-03-04 13:05:29 +01:00
2026-04-20 21:43:49 +02:00
2026-04-26 17:34:31 +02:00