3x-ui/internal/web/service/outbound
BlindMaster24 a810f497e6
fix(xray): read the last two inboundTag protocol ids like the core (#6530)
The core lowercases an outbound's protocol id before it resolves the handler,
so an outbound spelled "Loopback" still is the loopback outbound. Both
readers that keep a loopback outbound's inboundTag in step with the inbound
it names compared the id exactly, so such an outbound was skipped: renaming
or deleting that inbound left settings.inboundTag pointing at a tag that no
longer exists, and traffic returning through the loopback outbound arrives
under a tag no routing rule can match (infra/conf/loopback.go:15 carries the
tag, proxy/loopback/loopback.go:43 uses it as the inbound identity).

The probe lane's "nothing to test here" gate had the same exact comparison,
so a "Freedom"/"Blackhole" outbound reported the vaguer "No testable
endpoint" where the canonical spelling reports "Outbound has no testable
endpoint" — the two spellings took different paths to the same rejection.

Both readers now compare case-insensitively; the outbound package reuses its
existing equalsAnyFold helper rather than adding a second one. The service
reads the config template an operator edits, so a case variant is reachable
there; server.go's GetDefaultLogOutboundTags scans the embedded config.json
instead, whose protocols are canonical by construction, so it is left as is
and no test can tell a case-insensitive read there from an exact one.
2026-09-14 21:18:31 +03:00
..
egress_trace_test.go feat: Add outbound egress metadata (IP + country) (#5886) 2026-07-12 15:09:52 +02:00
outbound.go fix(xray): read the last two inboundTag protocol ids like the core (#6530) 2026-09-14 21:18:31 +03:00
outbound_commit_postgres_test.go fix(migration): stop a half-applied startup migration from committing silently (#6182) 2026-08-14 20:10:39 +02:00
outbound_endpoints_test.go fix(outbound): test VLESS vnext endpoints (#6358) 2026-09-02 20:46:49 +02:00
probe_http.go fix(outbound): read the probe testability gate's ids like the core (#6527) 2026-09-14 19:53:05 +03:00
probe_http_test.go feat(amneziawg): add AmneziaWG as an outbound protocol (#6320) 2026-09-10 14:50:48 +02:00
probe_protocol_case_test.go fix(xray): read the last two inboundTag protocol ids like the core (#6530) 2026-09-14 21:18:31 +03:00
probe_testability_gate_test.go fix(outbound): read the probe testability gate's ids like the core (#6527) 2026-09-14 19:53:05 +03:00