mirror of
https://github.com/juanfont/headscale.git
synced 2026-03-24 02:11:21 +01:00
Ensure we always have the key prefix when needed
This commit is contained in:
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").
|
||||
|
||||
Reference in New Issue
Block a user