mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-28 10:51:44 +01:00 
			
		
		
		
	Fix expired node registration URL
This commit is contained in:
		
							parent
							
								
									09cd7ba304
								
							
						
					
					
						commit
						a7efc22045
					
				
							
								
								
									
										4
									
								
								api.go
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								api.go
									
									
									
									
									
								
							| @ -605,8 +605,8 @@ func (h *Headscale) handleMachineExpired( | ||||
| 		resp.AuthURL = fmt.Sprintf("%s/oidc/register/%s", | ||||
| 			strings.TrimSuffix(h.cfg.ServerURL, "/"), machineKey.String()) | ||||
| 	} else { | ||||
| 		resp.AuthURL = fmt.Sprintf("%s/register?key=%s", | ||||
| 			strings.TrimSuffix(h.cfg.ServerURL, "/"), machineKey.String()) | ||||
| 		resp.AuthURL = fmt.Sprintf("%s/register/%s", | ||||
| 			strings.TrimSuffix(h.cfg.ServerURL, "/"), NodePublicKeyStripPrefix(registerRequest.NodeKey)) | ||||
| 	} | ||||
| 
 | ||||
| 	respBody, err := encode(resp, &machineKey, h.privateKey) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user