fixed node pwd issue

This commit is contained in:
worker-9
2021-08-05 13:19:55 -04:00
parent 736bcc3e55
commit eaa493f3d4
2 changed files with 2 additions and 2 deletions

View File

@@ -103,8 +103,8 @@ func JoinNetwork(cfg config.ClientConfig, privateKey string) error {
}
if cfg.Node.Password == "" {
cfg.Node.Password = GenPass()
auth.StoreSecret(cfg.Node.Password, cfg.Node.Network)
}
auth.StoreSecret(cfg.Node.Password, cfg.Node.Network)
if cfg.Node.Endpoint == "" {
if cfg.Node.IsLocal == "yes" && cfg.Node.LocalAddress != "" {
cfg.Node.Endpoint = cfg.Node.LocalAddress