mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
cmd/utils: fix --identity
This commit is contained in:
parent
0e3ef84138
commit
75e08ae83f
1 changed files with 1 additions and 3 deletions
|
|
@ -454,11 +454,9 @@ func setNodeKey(ctx *cli.Context, cfg *p2p.Config) {
|
||||||
|
|
||||||
// setNodeUserIdent creates the user identifier from CLI flags.
|
// setNodeUserIdent creates the user identifier from CLI flags.
|
||||||
func setNodeUserIdent(ctx *cli.Context, cfg *node.Config) {
|
func setNodeUserIdent(ctx *cli.Context, cfg *node.Config) {
|
||||||
comps := strings.Split(cfg.UserIdent, "/")
|
|
||||||
if identity := ctx.GlobalString(IdentityFlag.Name); len(identity) > 0 {
|
if identity := ctx.GlobalString(IdentityFlag.Name); len(identity) > 0 {
|
||||||
comps = append(comps, identity)
|
cfg.UserIdent = identity
|
||||||
}
|
}
|
||||||
cfg.UserIdent = strings.Join(comps, "/")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// setBootstrapNodes creates a list of bootstrap nodes from the command line
|
// setBootstrapNodes creates a list of bootstrap nodes from the command line
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue