diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-12-03 18:17:08 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-12-03 18:17:08 +0800 |
commit | 4825d9c3dd7d07eadfda8a6d5c18efb67df67088 (patch) | |
tree | 6b8b345bf018b0eb06fbde913fdb175d1ecf2e43 /cmd/puppeth/wizard_intro.go | |
parent | ef8ced4151006c84e77ab8db88cf6fc1bb09a716 (diff) | |
download | go-tangerine-4825d9c3dd7d07eadfda8a6d5c18efb67df67088.tar go-tangerine-4825d9c3dd7d07eadfda8a6d5c18efb67df67088.tar.gz go-tangerine-4825d9c3dd7d07eadfda8a6d5c18efb67df67088.tar.bz2 go-tangerine-4825d9c3dd7d07eadfda8a6d5c18efb67df67088.tar.lz go-tangerine-4825d9c3dd7d07eadfda8a6d5c18efb67df67088.tar.xz go-tangerine-4825d9c3dd7d07eadfda8a6d5c18efb67df67088.tar.zst go-tangerine-4825d9c3dd7d07eadfda8a6d5c18efb67df67088.zip |
cmd/puppeth: enforce lowercase network names
Diffstat (limited to 'cmd/puppeth/wizard_intro.go')
-rw-r--r-- | cmd/puppeth/wizard_intro.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/puppeth/wizard_intro.go b/cmd/puppeth/wizard_intro.go index 60aa0f7ff..3db9a1087 100644 --- a/cmd/puppeth/wizard_intro.go +++ b/cmd/puppeth/wizard_intro.go @@ -61,14 +61,14 @@ func (w *wizard) run() { // Make sure we have a good network name to work with fmt.Println() // Docker accepts hyphens in image names, but doesn't like it for container names if w.network == "" { - fmt.Println("Please specify a network name to administer (no spaces or hyphens, please)") + fmt.Println("Please specify a network name to administer (no spaces, hyphens or capital letters please)") for { w.network = w.readString() - if !strings.Contains(w.network, " ") && !strings.Contains(w.network, "-") { + if !strings.Contains(w.network, " ") && !strings.Contains(w.network, "-") && strings.ToLower(w.network) == w.network { fmt.Printf("\nSweet, you can set this via --network=%s next time!\n\n", w.network) break } - log.Error("I also like to live dangerously, still no spaces or hyphens") + log.Error("I also like to live dangerously, still no spaces, hyphens or capital letters") } } log.Info("Administering Ethereum network", "name", w.network) |