fea: socket: support to negotiate key

This commit is contained in:
Daniel Ding
2022-10-01 08:21:53 +08:00
parent 1f5bdbe45c
commit 4a6eaeb802
24 changed files with 315 additions and 128 deletions

View File

@@ -139,7 +139,7 @@ func (u User) Commands(app *api.App) {
Usage: "Add a new user",
Flags: []cli.Flag{
&cli.StringFlag{Name: "name"},
&cli.StringFlag{Name: "password", Value: libol.GenRandom(24)},
&cli.StringFlag{Name: "password", Value: libol.GenString(24)},
&cli.StringFlag{Name: "role", Value: "guest"},
&cli.StringFlag{Name: "lease", Value: lease.Format(libol.LeaseTime)},
},