Commit Graph

2 Commits

Author SHA1 Message Date
sdhfsl 227ed818b9 fix(sub): address review on external X-HWID
- Serialize first-time id creation with a mutex so concurrent
  first fetches cannot mint two UUIDs.
- Fix goimports grouping for the new third-party import.
- Add externalSubSendHwid opt-out (default send); document it.
- Cover header send/omit with httptest in TestFetchSendsStableHwid.
2026-09-16 16:55:54 +08:00
sdhfsl b2762e4d31 fix(sub): send stable X-HWID on external subscription fetch
A Master panel fetching a donor subscription sent no X-HWID, so an
HWID-limited donor rejected it with 404. Identify this panel with a
stable per-installation id (persisted in settings), occupying exactly
one donor device slot.

Fixes MHSanaei/3x-ui#6559
2026-09-16 16:28:31 +08:00