From 75e08ae83fc842edbfd7d3a12e9d292533dd3bc5 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Wed, 12 Apr 2017 15:52:23 +0200 Subject: [PATCH] cmd/utils: fix --identity --- cmd/utils/flags.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index c79d1638f7..1bd77139c5 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -454,11 +454,9 @@ func setNodeKey(ctx *cli.Context, cfg *p2p.Config) { // setNodeUserIdent creates the user identifier from CLI flags. func setNodeUserIdent(ctx *cli.Context, cfg *node.Config) { - comps := strings.Split(cfg.UserIdent, "/") 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