[GH-ISSUE #5351] [Feature]: add global fingerprint settings for all inbounds #3749

Open
opened 2026-10-31 20:34:41 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @newzealandgrom on GitHub (Jun 15, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5351

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?

  • I'd like to implement this feature myself and open a PR.
  • I can help test once a PR is open.

Before submitting

  • I searched existing issues and this feature has not been requested.
  • This feature request is written in English.
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? - [ ] I'd like to implement this feature myself and open a PR. - [ ] I can help test once a PR is open. ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this feature has not been requested. - [x] This feature request is written in English.
Author
Owner

@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 streamSettings JSON. Specifically:

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 inside internal/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 Setting model (internal/database/model/model.go:486) and are managed by internal/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:

  1. Backend (settings): Add a new key (e.g. globalFingerprint) to SettingService with a getter/setter and expose it via the settings API.
  2. Subscription service (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 the fp= parameter. This applies to TLS, REALITY, and external-proxy paths separately.
  3. Frontend settings UI: Add a dropdown for the global fingerprint to the panel settings page, using the same UtlsFingerprintSchema enum.
  4. Xray config generation: Decide whether the global fingerprint should also be written into the live Xray config that the panel pushes to the Xray process, or only into subscription output. The two are distinct paths. If it should affect the running Xray config, 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.

<!-- gh-comment-id:4709551614 --> @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 `streamSettings` JSON. Specifically: - For TLS inbounds: `streamSettings.tlsSettings.settings.fingerprint` — default `'chrome'` ([`frontend/src/schemas/protocols/security/tls.ts:57`](../../blob/main/frontend/src/schemas/protocols/security/tls.ts)) - For REALITY inbounds: `streamSettings.realitySettings.settings.fingerprint` — default `'chrome'` ([`frontend/src/schemas/protocols/security/reality.ts:10`](../../blob/main/frontend/src/schemas/protocols/security/reality.ts)) - External proxy entries also carry a per-entry `fingerprint` field ([`frontend/src/pages/inbounds/form/transport/external-proxy.tsx:16`](../../blob/main/frontend/src/pages/inbounds/form/transport/external-proxy.tsx)) 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 inside `internal/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 `Setting` model ([`internal/database/model/model.go:486`](../../blob/main/internal/database/model/model.go)) and are managed by `internal/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: 1. **Backend (settings):** Add a new key (e.g. `globalFingerprint`) to `SettingService` with a getter/setter and expose it via the settings API. 2. **Subscription service (`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 the `fp=` parameter. This applies to TLS, REALITY, and external-proxy paths separately. 3. **Frontend settings UI:** Add a dropdown for the global fingerprint to the panel settings page, using the same `UtlsFingerprintSchema` enum. 4. **Xray config generation:** Decide whether the global fingerprint should also be written into the live Xray config that the panel pushes to the Xray process, or only into subscription output. The two are distinct paths. If it should affect the running Xray config, `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.*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#3749
No description provided.