cmd/kgctl: allow specifying port

This commit is contained in:
Lucas Servén Marín
2019-09-24 01:00:16 +02:00
parent 676007938e
commit 3df87f0e71
2 changed files with 3 additions and 1 deletions

View File

@@ -147,7 +147,7 @@ func runShowConfNode(_ *cobra.Command, args []string) error {
}
}
t, err := mesh.NewTopology(nodes, peers, opts.granularity, hostname, mesh.DefaultKiloPort, []byte{}, subnet)
t, err := mesh.NewTopology(nodes, peers, opts.granularity, hostname, opts.port, []byte{}, subnet)
if err != nil {
return fmt.Errorf("failed to create topology: %v", err)
}