mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
cmd/puppeth: check both web and p2p port for explorer service
This commit is contained in:
parent
6ccf329857
commit
34bbfd840b
1 changed files with 4 additions and 0 deletions
|
|
@ -172,6 +172,10 @@ func checkExplorer(client *sshClient, network string) (*explorerInfos, error) {
|
||||||
host = client.server
|
host = client.server
|
||||||
}
|
}
|
||||||
// Run a sanity check to see if the devp2p is reachable
|
// Run a sanity check to see if the devp2p is reachable
|
||||||
|
p2pPort := infos.portmap[infos.envvars["ETH_PORT"]+"/tcp"]
|
||||||
|
if err = checkPort(host, p2pPort); err != nil {
|
||||||
|
log.Warn("Explorer node seems unreachable", "server", host, "port", p2pPort, "err", err)
|
||||||
|
}
|
||||||
if err = checkPort(host, port); err != nil {
|
if err = checkPort(host, port); err != nil {
|
||||||
log.Warn("Explorer service seems unreachable", "server", host, "port", port, "err", err)
|
log.Warn("Explorer service seems unreachable", "server", host, "port", port, "err", err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue