mirror of https://github.com/h44z/wg-portal.git
				
				
				
			fix self-provisioned peer-generation (#452)
This commit is contained in:
		
							parent
							
								
									7fd2bbad02
								
							
						
					
					
						commit
						61d8aa6589
					
				|  | @ -136,6 +136,7 @@ func (p *Peer) OverwriteUserEditableFields(userPeer *Peer, cfg *config.Config) { | ||||||
| 		p.Interface.PublicKey = userPeer.Interface.PublicKey | 		p.Interface.PublicKey = userPeer.Interface.PublicKey | ||||||
| 		p.Interface.PrivateKey = userPeer.Interface.PrivateKey | 		p.Interface.PrivateKey = userPeer.Interface.PrivateKey | ||||||
| 		p.PresharedKey = userPeer.PresharedKey | 		p.PresharedKey = userPeer.PresharedKey | ||||||
|  | 		p.Identifier = userPeer.Identifier | ||||||
| 	} | 	} | ||||||
| 	p.Interface.Mtu = userPeer.Interface.Mtu | 	p.Interface.Mtu = userPeer.Interface.Mtu | ||||||
| 	p.PersistentKeepalive = userPeer.PersistentKeepalive | 	p.PersistentKeepalive = userPeer.PersistentKeepalive | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue