mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #5758] [Feature]: Seperate Host IP address from Host Config #4004
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#4004
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 @behnamgolds on GitHub (Jul 3, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5758
Is your feature request related to a problem?
no
Describe the solution you'd like
Every now and then I scan and add around 50 clean CF, Fastly, ... ip addresses to my inbounds, although it is nice to have a seperate section for the ip addresses (a.k.a hosts) like the way it is right now, but it is tedious to add 50 ip addressess that have the same settings. I suggest seperate the ip addresses from the host settings , or create host groups where the settings are set once and then add ip addresses to them and finally add host groups to the inbounds (right now it is the other way around, we add inbounds to the hosts). This way we can have the same ip addresses (hosts) with different settings and add them to different inbounds.
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 (Jul 3, 2026):
Confirmed against the current code: this is not currently possible, and the request is a reasonable read of how the
Hostmodel works today.Each row in the
hoststable (model.Host,internal/database/model/model.go) couples exactly oneAddressto a full copy of all the delivery settings —Security,Sni,HostHeader,Path,Alpn,Fingerprint,PinnedPeerCertSha256,MuxParams,SockoptParams,FinalMask, etc. — and is bound to a singleInboundId.HostService(internal/web/service/host.go) and the/panel/api/hostsroutes (internal/web/controller/host.go) only expose per-row CRUD plus bulk enable/disable/delete/reorder — there is no endpoint or UI (frontend/src/pages/hosts/HostFormModal.tsx) to create many address rows that share one settings definition, and no "duplicate" action either. So adding 50 CDN/Fastly IPs with identical TLS/path/etc. today means creating 50 separateHostrows and re-entering the same settings in each one, exactly as described.This would be a genuine data-model change (something like splitting
Hostinto a settings template plus a list of addresses, or a "host group" entity), not a small UI tweak, so it is being labeled as a backlog feature request rather than a quick fix. Two related-but-distinct open requests worth being aware of if you follow this area: #5004 (excluding host-specific settings from DB export/import) and #5026 (grouping inbounds, not hosts, for subscription scaling) — neither covers this specific ask, so this is being tracked separately.If you would like to work on this yourself, the natural entry points are
internal/database/model/model.go(theHoststruct + a new migration ininternal/database/db.go),internal/web/service/host.go/internal/web/controller/host.go,internal/sub/host_sub.go(where host rows are applied to subscription output), andfrontend/src/pages/hosts/.This reply was generated automatically. A maintainer may follow up.