Skip to content

Commit

Permalink
Changed missing path
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfont committed Aug 13, 2022
1 parent a7efc22 commit 8c13f64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.go
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ func (h *Headscale) handleMachineExpired(

if h.cfg.OIDC.Issuer != "" {
resp.AuthURL = fmt.Sprintf("%s/oidc/register/%s",
strings.TrimSuffix(h.cfg.ServerURL, "/"), machineKey.String())
strings.TrimSuffix(h.cfg.ServerURL, "/"), NodePublicKeyStripPrefix(registerRequest.NodeKey))
} else {
resp.AuthURL = fmt.Sprintf("%s/register/%s",
strings.TrimSuffix(h.cfg.ServerURL, "/"), NodePublicKeyStripPrefix(registerRequest.NodeKey))
Expand Down

0 comments on commit 8c13f64

Please sign in to comment.