mirror of
https://github.com/h44z/wg-portal.git
synced 2026-12-05 11:46:09 +01:00
Merge branch 'master' into amneziawg
This commit is contained in:
@@ -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
|
// OverwriteUserEditableFields overwrites the user-editable fields of the peer with the values from the userPeer
|
||||||
func (p *Peer) OverwriteUserEditableFields(userPeer *Peer, cfg *config.Config) {
|
func (p *Peer) OverwriteUserEditableFields(userPeer *Peer, cfg *config.Config) {
|
||||||
p.DisplayName = userPeer.DisplayName
|
p.DisplayName = SanitizeString(userPeer.DisplayName, 255)
|
||||||
if cfg.Core.EditableKeys {
|
if cfg.Core.EditableKeys {
|
||||||
p.Interface.PublicKey = userPeer.Interface.PublicKey
|
p.Interface.PublicKey = userPeer.Interface.PublicKey
|
||||||
p.Interface.PrivateKey = userPeer.Interface.PrivateKey
|
p.Interface.PrivateKey = userPeer.Interface.PrivateKey
|
||||||
|
|||||||
Reference in New Issue
Block a user