We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5ba755 commit 275cc28Copy full SHA for 275cc28
1 file changed
protocol_common.go
@@ -490,6 +490,7 @@ func (h *Headscale) handleNewMachineCommon(
490
Bool("noise", machineKey.IsZero()).
491
Str("machine", registerRequest.Hostinfo.Hostname).
492
Msg("The node seems to be new, sending auth url")
493
+
494
if h.oauth2Config != nil {
495
resp.AuthURL = fmt.Sprintf(
496
"%s/oidc/register/%s",
@@ -727,7 +728,7 @@ func (h *Headscale) handleMachineExpiredCommon(
727
728
729
resp.AuthURL = fmt.Sprintf("%s/oidc/register/%s",
730
strings.TrimSuffix(h.cfg.ServerURL, "/"),
- NodePublicKeyStripPrefix(registerRequest.NodeKey))
731
+ registerRequest.NodeKey)
732
} else {
733
resp.AuthURL = fmt.Sprintf("%s/register/%s",
734
0 commit comments