Merge branch 'master' into amneziawg

This commit is contained in:
Christoph
2026-12-03 14:27:19 +01:00
+1 -1
View File
@@ -136,7 +136,7 @@ func (p *Peer) GenerateDisplayName(prefix string) {
// OverwriteUserEditableFields overwrites the user-editable fields of the peer with the values from the userPeer
func (p *Peer) OverwriteUserEditableFields(userPeer *Peer, cfg *config.Config) {
p.DisplayName = userPeer.DisplayName
p.DisplayName = SanitizeString(userPeer.DisplayName, 255)
if cfg.Core.EditableKeys {
p.Interface.PublicKey = userPeer.Interface.PublicKey
p.Interface.PrivateKey = userPeer.Interface.PrivateKey