mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6579] [MERGED] fix(sub): send panel guid as X-HWID on outbound subscription fetch #6359
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#6359
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/6579
Author: @sdhfsl
Created: 9/17/2026
Status: ✅ Merged
Merged: 9/26/2026
Merged by: @MHSanaei
Base:
main← Head:fix-outbound-sub-hwid📝 Commits (10+)
959e6fdfix(panel): accept 2FA codes from adjacent TOTP windowsf3096bbfix(panel): share TOTP skew tolerance with VerifyTwoFactorCode198ac75Merge branch 'main' into mainacb0297Merge branch 'MHSanaei:main' into main35b92a1Merge branch 'MHSanaei:main' into mainea72001fix(sub): send panel guid as X-HWID on outbound subscription fetch92bfc4dMerge branch 'main' into fix-outbound-sub-hwid86920a2Merge branch 'main' into fix-outbound-sub-hwid05bba91Merge remote-tracking branch 'origin/main' into pr-6579bef0d4dfix(sub): send the external-subscription X-HWID from outbound fetches too📊 Changes
5 files changed (+114 additions, -70 deletions)
View changed files
📝
internal/sub/external_hwid_test.go(+3 -32)📝
internal/sub/external_subscription.go(+2 -38)➕
internal/web/service/external_hwid.go(+45 -0)➕
internal/web/service/outbound_hwid_test.go(+60 -0)📝
internal/web/service/outbound_subscription.go(+4 -0)📄 Description
Problem
Fixes #6574 — same LOT as #6559 (fixed by #6567), other fetch path.
Outbound Subscriptions (
fetchAndStore) set onlyUser-Agent. Against an HWID-limited donor,EnforceHwidForSubIDrejects the empty HWID and answers 404:Failed to fetch/parse subscription (http 404). #6567 fixed the client-external-links path; this path was missed.Fix
GetPanelGuid()asX-HWIDplusX-Device-OS: 3x-ui(exactly what the issue suggests), honoring the sameexternalSubSendHwidopt-out introduced in #6567 (default send).Tests
New
TestOutboundFetchSendsHwiddrivesRefreshagainst httptest: header present with the panel guid by default, absent after opt-out. Mutation-checked (header lines removed -> test red, restored -> green).go vet+ gofmt clean.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.