mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #5351] [Feature]: add global fingerprint settings for all inbounds #3749
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#3749
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?
Originally created by @newzealandgrom on GitHub (Jun 15, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5351
Is your feature request related to a problem?
add global fingerprint settings for all inbounds
Describe the solution you'd like
Just let users to set one global fingerprint that clients will get
Alternatives you've considered
No response
Concrete use case
No response
Mockups, screenshots, or examples
No response
Which parts of the panel would this affect?
No response
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Jun 15, 2026):
This is a reasonable enhancement request. Here is what the current implementation looks like and what implementing it would require.
Current state (confirmed in source)
The uTLS fingerprint is stored per-inbound, embedded inside
streamSettingsJSON. Specifically:streamSettings.tlsSettings.settings.fingerprint— default'chrome'(frontend/src/schemas/protocols/security/tls.ts:57)streamSettings.realitySettings.settings.fingerprint— default'chrome'(frontend/src/schemas/protocols/security/reality.ts:10)fingerprintfield (frontend/src/pages/inbounds/form/transport/external-proxy.tsx:16)The available values are:
chrome,firefox,safari,ios,android,edge,360,qq,random,randomized,randomizednoalpn,unsafe(or empty string to omit it in TLS context).The fingerprint is emitted into subscription share-links as the
fp=URI parameter insideinternal/sub/service.go(lines 754, 1063, 1093, 1180), reading it out of the stored per-inbound JSON each time.Panel-level key/value settings exist via the
Settingmodel (internal/database/model/model.go:486) and are managed byinternal/web/service/setting.go, but there is currently no global fingerprint key in that table.What implementing this would require
A global fingerprint override involves at least four layers:
globalFingerprint) toSettingServicewith a getter/setter and expose it via the settings API.internal/sub/service.go): When building share-links, check if the global fingerprint is set and non-empty, and if so override the per-inbound value for thefp=parameter. This applies to TLS, REALITY, and external-proxy paths separately.UtlsFingerprintSchemaenum.internal/xray/config generation logic would also need to be updated.Note: applying a global value only at subscription-generation time (option 4 scope: sub only) is simpler and avoids touching the Xray config path. Whether the intent is to change what clients receive in subscriptions, what the server itself uses, or both should be clarified.
If you are willing to implement this, a PR is welcome. It would be helpful to clarify in the PR description whether the global fingerprint should affect subscription output only, the running Xray server config, or both.
This reply was generated automatically; a maintainer may follow up.