aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/puppeth/wizard_dashboard.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/puppeth/wizard_dashboard.go')
-rw-r--r--cmd/puppeth/wizard_dashboard.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/puppeth/wizard_dashboard.go b/cmd/puppeth/wizard_dashboard.go
index 278b5533a..5f781c415 100644
--- a/cmd/puppeth/wizard_dashboard.go
+++ b/cmd/puppeth/wizard_dashboard.go
@@ -33,16 +33,15 @@ func (w *wizard) deployDashboard() {
client := w.servers[server]
// Retrieve any active dashboard configurations from the server
- existed := true
-
infos, err := checkDashboard(client, w.network)
if err != nil {
infos = &dashboardInfos{
port: 80,
host: client.server,
}
- existed = false
}
+ existed := err == nil
+
// Figure out which port to listen on
fmt.Println()
fmt.Printf("Which port should the dashboard listen on? (default = %d)\n", infos.port)