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
|
@ -486,7 +486,9 @@ func nodesToPtables(
|
|||
}
|
||||
|
||||
var nodeKey key.NodePublic
|
||||
err := nodeKey.UnmarshalText([]byte(machine.NodeKey))
|
||||
err := nodeKey.UnmarshalText(
|
||||
[]byte(headscale.NodePublicKeyEnsurePrefix(machine.NodeKey)),
|
||||
)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue