3x-ui/internal/util/link
MHSanaei f1444bec3f
fix(outbound): store subscription refreshes without trusting the row read
The refresh rewrote the whole row it read before a download whose length
the provider controls, so an admin's delete, disable or edit made in the
meantime was undone; Update had the mirror problem. Both now write only
their own columns, and a refresh of a row that was deleted or re-pointed
stores nothing.

Around the same path:
- the preview fetches without creating (and leaking) a scratch row, and
  Create keeps enabled=false instead of falling back to the column default;
- fetch errors name the host but not the subscription URL, which is a
  credential and ends up in the log and in lastError;
- each fetch closes its transport's idle connections;
- one document loads at most 2000 links, and the cut is reported;
- wireguard outbounds from a subscription always run on the userspace TUN;
- editing a subscription schedules an Xray reload like delete and move do.
2026-10-31 08:31:03 +00:00
..
outbound.go fix(outbound): store subscription refreshes without trusting the row read 2026-10-31 08:31:03 +00:00
outbound_fuzz_test.go Test-quality audit: fix 2 prod bugs, strengthen weak tests, add mutation/fuzz/CI tooling (#5345) 2026-06-15 15:17:03 +02:00
outbound_helpers_test.go feat(sub): export TLS cipher suites as the cs query param in share links (#6825) 2026-10-24 06:44:24 +02:00
outbound_test.go fix(outbound): keep imported links to remote-server settings 2026-10-31 08:19:44 +00:00