Ensure we always have the key prefix when needed
This commit is contained in:
parent
c38f00fab8
commit
59aeaa8476
6 changed files with 38 additions and 8 deletions
2
poll.go
2
poll.go
|
@ -38,7 +38,7 @@ func (h *Headscale) PollNetMapHandler(ctx *gin.Context) {
|
|||
machineKeyStr := ctx.Param("id")
|
||||
|
||||
var machineKey key.MachinePublic
|
||||
err := machineKey.UnmarshalText([]byte(machineKeyStr))
|
||||
err := machineKey.UnmarshalText([]byte(MachinePublicKeyEnsurePrefix(machineKeyStr)))
|
||||
if err != nil {
|
||||
log.Error().
|
||||
Str("handler", "PollNetMap").
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue