mirror of
https://github.com/juanfont/headscale.git
synced 2025-10-16 11:51:21 +00:00
Ensure we always have the key prefix when needed
This commit is contained in:
2
oidc.go
2
oidc.go
@@ -192,7 +192,7 @@ func (h *Headscale) OIDCCallback(ctx *gin.Context) {
|
||||
machineKeyStr, machineKeyOK := machineKeyIf.(string)
|
||||
|
||||
var machineKey key.MachinePublic
|
||||
err = machineKey.UnmarshalText([]byte(machineKeyStr))
|
||||
err = machineKey.UnmarshalText([]byte(MachinePublicKeyEnsurePrefix(machineKeyStr)))
|
||||
if err != nil {
|
||||
log.Error().
|
||||
Msg("could not parse machine public key")
|
||||
|
Reference in New Issue
Block a user