mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-23 18:15:26 +00:00
The create-node
subcommand under debug
needs a 64 character key.
This commit is contained in:
parent
d944aa6e79
commit
b6ae60cc44
@ -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 New Issue
Block a user