Browse Source

:bug: Small fixups in cmd/join after rename

Ettore Di Giacinto 3 years ago
parent
commit
a11ae0cb1f
1 changed files with 4 additions and 5 deletions
  1. 4 5
      cmd/join.go

+ 4 - 5
cmd/join.go

@@ -24,11 +24,11 @@ import (
 
 
 func Start() cli.Command {
 func Start() cli.Command {
 	return cli.Command{
 	return cli.Command{
-		Name:  "Start",
+		Name:  "start",
 		Usage: "Start the network without activating any interface",
 		Usage: "Start the network without activating any interface",
 		Description: `Connect over the p2p network without establishing a VPN.
 		Description: `Connect over the p2p network without establishing a VPN.
 Useful for setting up relays or hop nodes to improve the network connectivity.`,
 Useful for setting up relays or hop nodes to improve the network connectivity.`,
-		UsageText: "edgevpn Start",
+		UsageText: "edgevpn start",
 		Flags:     CommonFlags,
 		Flags:     CommonFlags,
 		Action: func(c *cli.Context) error {
 		Action: func(c *cli.Context) error {
 			o, _, ll := cliToOpts(c)
 			o, _, ll := cliToOpts(c)
@@ -45,9 +45,8 @@ Useful for setting up relays or hop nodes to improve the network connectivity.`,
 			}
 			}
 
 
 			ll.Info("Joining p2p network")
 			ll.Info("Joining p2p network")
-
-			for {
-			}
+			<-context.Background().Done()
+			return nil
 		},
 		},
 	}
 	}
 }
 }