mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5715] [Bug]: wireguard allowedIPs is not realized on Inbound edit form #3976
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#3976
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 @gomanuke on GitHub (Jul 1, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5715
Describe the bug
allowedIPs is showed on Client's edit form (readonly) but not realised on Inbound's edit form. Just on advanced JSON tab.
How to reproduce the problem
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.4.2
Xray-core version
No response
How did you install 3x-ui?
install.sh script
Operating system
Debian 13
Which parts of the panel are affected?
No response
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
None
Before submitting
@github-actions[bot] commented on GitHub (Jul 1, 2026):
Confirmed in the code: there is currently no form control anywhere in the panel that lets you set or change a WireGuard peer's
allowedIPs— it is auto-generated on create and read-only on edit, with the raw JSON editor as the only way to see/change it.frontend/src/pages/inbounds/form/protocols/wireguard.tsx) only expose inbound-wide settings —secretKey, MTU,dns,noKernelTun,domainStrategy— and the derived server public key. There is no peer/client list UI in that component at all, soallowedIPsper peer can't appear there.frontend/src/pages/clients/ClientFormModal.tsx:805-808) renderswireguardAllowedIPsas a disabledInput, and only when editing an existing client that already has a value (isEdit && form.wgAllowedIPs). It is never shown, and never editable, when adding a new client.defaultWireguardClientsininternal/web/service/client_wireguard.go(lines 82-129) fills inAllowedIPsfrom the inbound's subnet whenever a client is added without one, picking the next free/32(allocateWireguardAddress) so it doesn't collide with existing peers.AdvancedSliceEditor, wired inInboundFormModal.tsx), editingsettings.clients[].allowedIPsdirectly, which matches what you observed.So this isn't a regression in the sense of something that used to work — the WireGuard form was never given an editable
allowedIPscontrol outside the raw JSON tab. It's a genuine gap compared to the auto-populated fields (keys, DNS, etc.) that are editable through the form. It's also related to the broader WireGuard peer-management limitations tracked in #5002.This reply was generated automatically by an AI agent; a maintainer may follow up.
@MHSanaei commented on GitHub (Jul 2, 2026):
Implemented in
64c30603: the WireGuard Allowed IPs field in the client editor is now editable (comma-separated entries, leaving it empty still auto-assigns a free address). Submitted values are validated server-side — each entry must be an IP or CIDR, and an address already used by another peer on the inbound is rejected. Will ship in the next release.