Fixed another recurrence of MachineKey

This commit is contained in:
Juan Font Alonso 2022-08-14 12:04:31 +02:00
parent ee8f38111e
commit 5b14cafddd

2
api.go
View File

@ -699,7 +699,7 @@ func (h *Headscale) handleMachineRegistrationNew(
resp.AuthURL = fmt.Sprintf(
"%s/oidc/register/%s",
strings.TrimSuffix(h.cfg.ServerURL, "/"),
machineKey.String(),
NodePublicKeyStripPrefix(registerRequest.NodeKey),
)
} else {
resp.AuthURL = fmt.Sprintf("%s/register/%s",