fix self-provisioned peer-generation (#452)

(cherry picked from commit 61d8aa658996cf563a1a5c2db1d99bcfc7de7162)
This commit is contained in:
Christoph Haas 2025-06-08 11:17:04 +02:00
parent 930ef7b573
commit 5b56e58fe9
No known key found for this signature in database

View File

@ -136,6 +136,7 @@ func (p *Peer) OverwriteUserEditableFields(userPeer *Peer, cfg *config.Config) {
p.Interface.PublicKey = userPeer.Interface.PublicKey
p.Interface.PrivateKey = userPeer.Interface.PrivateKey
p.PresharedKey = userPeer.PresharedKey
p.Identifier = userPeer.Identifier
}
p.Interface.Mtu = userPeer.Interface.Mtu
p.PersistentKeepalive = userPeer.PersistentKeepalive