mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6455] [MERGED] feat(clients): add Generate button for WireGuard/AmneziaWG PresharedKey #6277
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#6277
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/6455
Author: @mrchatam
Created: 9/11/2026
Status: ✅ Merged
Merged: 9/12/2026
Merged by: @MHSanaei
Base:
main← Head:feat/wg-psk-generate📝 Commits (2)
b6fbcbbfeat(clients): add Generate button for WireGuard/AmneziaWG PresharedKey47d95edfix(clients): keep FormField for WireGuard PresharedKey generate📊 Changes
1 file changed (+16 additions, -4 deletions)
View changed files
📝
frontend/src/pages/clients/ClientFormModal.tsx(+16 -4)📄 Description
Summary
Fixes #6343.
Adds a regenerate button next to the WireGuard/AmneziaWG client
PresharedKeyfield inClientFormModal, matching the existing private-key / password regenerate controls (Space.Compact+ReloadOutlined).Value is 32 random bytes encoded as base64 via the existing
Wireguard.generatePresharedKey()+keyToBase64()helpers (same format aswg genpsk). Client-side only; field remains optional.Test plan
PresharedKeyline.confincludesPresharedKey = …🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.