aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/puppeth/wizard_intro.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-05-03 15:09:34 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-05-03 15:09:34 +0800
commitcf4faa491a699e2a9397ad3809695cc9c0965662 (patch)
tree62ca961f5f70d8351e10c1e0dd5c6b431b21f373 /cmd/puppeth/wizard_intro.go
parent59966255add632e3ef09799a8b994ec982bd415a (diff)
downloadgo-tangerine-cf4faa491a699e2a9397ad3809695cc9c0965662.tar
go-tangerine-cf4faa491a699e2a9397ad3809695cc9c0965662.tar.gz
go-tangerine-cf4faa491a699e2a9397ad3809695cc9c0965662.tar.bz2
go-tangerine-cf4faa491a699e2a9397ad3809695cc9c0965662.tar.lz
go-tangerine-cf4faa491a699e2a9397ad3809695cc9c0965662.tar.xz
go-tangerine-cf4faa491a699e2a9397ad3809695cc9c0965662.tar.zst
go-tangerine-cf4faa491a699e2a9397ad3809695cc9c0965662.zip
cmd/puppeth, vendor: update ssh, manage server keys (#14398)
Diffstat (limited to 'cmd/puppeth/wizard_intro.go')
-rw-r--r--cmd/puppeth/wizard_intro.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/cmd/puppeth/wizard_intro.go b/cmd/puppeth/wizard_intro.go
index 46383bb54..c3eaf5324 100644
--- a/cmd/puppeth/wizard_intro.go
+++ b/cmd/puppeth/wizard_intro.go
@@ -31,7 +31,10 @@ import (
// makeWizard creates and returns a new puppeth wizard.
func makeWizard(network string) *wizard {
return &wizard{
- network: network,
+ network: network,
+ conf: config{
+ Servers: make(map[string][]byte),
+ },
servers: make(map[string]*sshClient),
services: make(map[string][]string),
in: bufio.NewReader(os.Stdin),
@@ -77,9 +80,9 @@ func (w *wizard) run() {
} else if err := json.Unmarshal(blob, &w.conf); err != nil {
log.Crit("Previous configuration corrupted", "path", w.conf.path, "err", err)
} else {
- for _, server := range w.conf.Servers {
+ for server, pubkey := range w.conf.Servers {
log.Info("Dialing previously configured server", "server", server)
- client, err := dial(server)
+ client, err := dial(server, pubkey)
if err != nil {
log.Error("Previous server unreachable", "server", server, "err", err)
}