cm/puppeth: fix crash when of ethstats specifier doesn't contain : (#25405)

Signed-off-by: Delweng <delweng@gmail.com>
This commit is contained in:
Delweng
2022-07-29 18:28:14 +02:00
committed by GitHub
parent 029059947a
commit 1af9e4f34c
4 changed files with 12 additions and 3 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ func deployExplorer(client *sshClient, network string, bootnodes []string, confi
"Datadir": config.node.datadir,
"DBDir": config.dbdir,
"EthPort": config.node.port,
"EthName": config.node.ethstats[:strings.Index(config.node.ethstats, ":")],
"EthName": getEthName(config.node.ethstats),
"WebPort": config.port,
"Transformer": transformer,
})