mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-28 10:51:44 +01:00 
			
		
		
		
	Move comment up
Co-authored-by: Kristoffer Dalby <kradalby@kradalby.no>
This commit is contained in:
		
							parent
							
								
									922b8b5365
								
							
						
					
					
						commit
						2f554133c5
					
				@ -600,8 +600,8 @@ func (machine Machine) toNode(
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	var machineKey key.MachinePublic
 | 
						var machineKey key.MachinePublic
 | 
				
			||||||
	if machine.MachineKey != "" {
 | 
					 | 
				
			||||||
	// MachineKey is only used in the legacy protocol
 | 
						// MachineKey is only used in the legacy protocol
 | 
				
			||||||
 | 
						if machine.MachineKey != "" {
 | 
				
			||||||
		err = machineKey.UnmarshalText(
 | 
							err = machineKey.UnmarshalText(
 | 
				
			||||||
			[]byte(MachinePublicKeyEnsurePrefix(machine.MachineKey)),
 | 
								[]byte(MachinePublicKeyEnsurePrefix(machine.MachineKey)),
 | 
				
			||||||
		)
 | 
							)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user