Change network to accept DialFunc

This commit is contained in:
9seconds
2021-03-11 06:08:15 +03:00
parent 6b28488fbd
commit d6566e5dfb
18 changed files with 67 additions and 117 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ type GenerateSecret struct {
Hex bool `help:"Print secret in hex encoding."`
}
func (c *GenerateSecret) Run(cli *CLI) error { // nolint: unparam
func (c *GenerateSecret) Run(cli *CLI, _ string) error {
secret := mtglib.GenerateSecret(cli.GenerateSecret.HostName)
if cli.GenerateSecret.Hex {