create client for nodes on authenticate,generate dyn sec file on startup

This commit is contained in:
Abhishek Kondur
2022-09-27 17:36:33 +05:30
parent 3d5eac6905
commit 878430bf75
10 changed files with 208 additions and 178 deletions

View File

@@ -199,7 +199,7 @@ func JoinNetwork(cfg *config.ClientConfig, privateKey string) error {
return err
}
if cfg.Node.Password == "" {
cfg.Node.Password = logic.GenKey()
cfg.Node.Password = logic.GenPassWord()
}
//check if ListenPort was set on command line
if cfg.Node.ListenPort != 0 {