The create-node subcommand under debug needs a 64 character key.

This commit is contained in:
Ward Vandewege 2021-11-26 14:49:51 -05:00
parent d944aa6e79
commit b6ae60cc44

View file

@ -77,6 +77,16 @@ var createNodeCmd = &cobra.Command{
return 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") routes, err := cmd.Flags().GetStringSlice("route")
if err != nil { if err != nil {