Fixes in Noise poll (clients should work now)

This commit is contained in:
Juan Font Alonso 2022-08-14 21:10:08 +02:00
parent ab18c721bb
commit e640c6df05
2 changed files with 38 additions and 21 deletions

View file

@ -369,8 +369,9 @@ func (h *Headscale) handleNoiseMachineRegistrationNew(
// The machine registration is new, redirect the client to the registration URL
log.Debug().
Caller().
Str("machine", registerRequest.Hostinfo.Hostname).
Msg("The node is sending us a new NodeKey, sending auth url")
Msg("The node seems to be new, sending auth url")
if h.cfg.OIDC.Issuer != "" {
resp.AuthURL = fmt.Sprintf(
"%s/oidc/register/%s",