mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-07 09:41:37 +08:00
fixed node pwd issue
This commit is contained in:
@@ -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{
|
||||||
|
Reference in New Issue
Block a user