mirror of
https://github.com/gravitl/netmaker.git
synced 2025-12-09 05:50:55 +08:00
fixed node pwd issue
This commit is contained in:
parent
736bcc3e55
commit
eaa493f3d4
2 changed files with 2 additions and 2 deletions
|
|
@ -103,8 +103,8 @@ func JoinNetwork(cfg config.ClientConfig, privateKey string) error {
|
||||||
}
|
}
|
||||||
if cfg.Node.Password == "" {
|
if cfg.Node.Password == "" {
|
||||||
cfg.Node.Password = GenPass()
|
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.Endpoint == "" {
|
||||||
if cfg.Node.IsLocal == "yes" && cfg.Node.LocalAddress != "" {
|
if cfg.Node.IsLocal == "yes" && cfg.Node.LocalAddress != "" {
|
||||||
cfg.Node.Endpoint = cfg.Node.LocalAddress
|
cfg.Node.Endpoint = cfg.Node.LocalAddress
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ func main() {
|
||||||
Name: "password",
|
Name: "password",
|
||||||
Aliases: []string{"p"},
|
Aliases: []string{"p"},
|
||||||
EnvVars: []string{"NETCLIENT_PASSWORD"},
|
EnvVars: []string{"NETCLIENT_PASSWORD"},
|
||||||
Value: "badpassword",
|
Value: "",
|
||||||
Usage: "Password for authenticating with netmaker.",
|
Usage: "Password for authenticating with netmaker.",
|
||||||
},
|
},
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue