mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6471] [MERGED] feat(settings): add setting for Reality scan candidates #6293
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#6293
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/6471
Author: @mrchatam
Created: 9/11/2026
Status: ✅ Merged
Merged: 9/13/2026
Merged by: @MHSanaei
Base:
main← Head:feat/reality-scan-candidates-setting📝 Commits (7)
d0f29e7feat(settings): allow customizing Reality scan candidate list4a28a8astyle(frontend): oxfmt realityScanCandidates in setting.ts3db6b22Merge branch 'main' into feat/reality-scan-candidates-settingcb853e1Fix locale JSON syntax0c510e4docs(i18n): update Happ translationsa52e7derefactor(reality): drop test-only scaffolding from the candidate setting006ec26docs(api): describe the setting-driven scanRealityTargets fallback📊 Changes
29 files changed (+857 additions, -735 deletions)
View changed files
📝
docs/content/docs/en/reference/api/server.mdx(+8 -6)📝
docs/public/openapi.json(+10 -2)📝
frontend/public/openapi.json(+10 -2)📝
frontend/src/generated/examples.ts(+2 -0)📝
frontend/src/generated/schemas.ts(+8 -0)📝
frontend/src/generated/types.ts(+2 -0)📝
frontend/src/generated/zod.ts(+2 -0)📝
frontend/src/models/setting.ts(+2 -0)📝
frontend/src/pages/api-docs/endpoints.ts(+2 -2)📝
frontend/src/pages/settings/GeneralTab.tsx(+19 -0)📝
frontend/src/schemas/setting.ts(+1 -0)📝
internal/web/controller/server.go(+2 -3)📝
internal/web/entity/entity.go(+11 -10)📝
internal/web/service/reality_scan.go(+24 -3)📝
internal/web/service/reality_scan_test.go(+16 -0)📝
internal/web/service/setting.go(+5 -0)📝
internal/web/translation/ar-EG.json(+74 -72)📝
internal/web/translation/en-US.json(+13 -11)📝
internal/web/translation/es-ES.json(+72 -70)📝
internal/web/translation/fa-IR.json(+16 -14)...and 9 more files
📄 Description
Summary
realityScanCandidatespanel setting (comma-separatedhost:port/ CIDR list), defaulting to the previous hardcodeddefaultRealityScanCandidates.ScanRealityTargets) uses the saved list when the search box is empty, instead of only the compile-time constant.Test plan
go test ./internal/web/service/ -run 'TestDefaultRealityScanCandidatesCSV|TestParseRealityScanCandidateCSV|TestRealityScanCandidateTokensFallsBackWithoutDB|TestScanRealityTargets'Fixes #5847
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.