Fixed another recurrence of MachineKey
This commit is contained in:
parent
ee8f38111e
commit
5b14cafddd
1 changed files with 1 additions and 1 deletions
2
api.go
2
api.go
|
@ -699,7 +699,7 @@ func (h *Headscale) handleMachineRegistrationNew(
|
||||||
resp.AuthURL = fmt.Sprintf(
|
resp.AuthURL = fmt.Sprintf(
|
||||||
"%s/oidc/register/%s",
|
"%s/oidc/register/%s",
|
||||||
strings.TrimSuffix(h.cfg.ServerURL, "/"),
|
strings.TrimSuffix(h.cfg.ServerURL, "/"),
|
||||||
machineKey.String(),
|
NodePublicKeyStripPrefix(registerRequest.NodeKey),
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
resp.AuthURL = fmt.Sprintf("%s/register/%s",
|
resp.AuthURL = fmt.Sprintf("%s/register/%s",
|
||||||
|
|
Loading…
Reference in a new issue