mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-11-04 01:51:04 +01:00 
			
		
		
		
	Merge branch 'main' into hs2021-v2
This commit is contained in:
		
						commit
						7a91c82cda
					
				
							
								
								
									
										6
									
								
								api.go
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								api.go
									
									
									
									
									
								
							@ -649,10 +649,10 @@ func (h *Headscale) handleMachineExpired(
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	if h.cfg.OIDC.Issuer != "" {
 | 
						if h.cfg.OIDC.Issuer != "" {
 | 
				
			||||||
		resp.AuthURL = fmt.Sprintf("%s/oidc/register/%s",
 | 
							resp.AuthURL = fmt.Sprintf("%s/oidc/register/%s",
 | 
				
			||||||
			strings.TrimSuffix(h.cfg.ServerURL, "/"), machineKey.String())
 | 
								strings.TrimSuffix(h.cfg.ServerURL, "/"), NodePublicKeyStripPrefix(registerRequest.NodeKey))
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		resp.AuthURL = fmt.Sprintf("%s/register?key=%s",
 | 
							resp.AuthURL = fmt.Sprintf("%s/register/%s",
 | 
				
			||||||
			strings.TrimSuffix(h.cfg.ServerURL, "/"), machineKey.String())
 | 
								strings.TrimSuffix(h.cfg.ServerURL, "/"), NodePublicKeyStripPrefix(registerRequest.NodeKey))
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	respBody, err := encode(resp, &machineKey, h.privateKey)
 | 
						respBody, err := encode(resp, &machineKey, h.privateKey)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user