mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-26 08:53:05 +00:00
The create-node
subcommand under debug
needs a 64 character key.
This commit is contained in:
parent
d944aa6e79
commit
b6ae60cc44
1 changed files with 10 additions and 0 deletions
|
@ -77,6 +77,16 @@ var createNodeCmd = &cobra.Command{
|
|||
|
||||
return
|
||||
}
|
||||
if len(machineKey) != 64 {
|
||||
err = fmt.Errorf("key '%s' too short, must be 64 hexadecimal characters", machineKey)
|
||||
ErrorOutput(
|
||||
err,
|
||||
fmt.Sprintf("Error: %s", err),
|
||||
output,
|
||||
)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
routes, err := cmd.Flags().GetStringSlice("route")
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue