From 1f2bd90308ae2349f2673fe2b41e2bfd1a0d5c85 Mon Sep 17 00:00:00 2001 From: Cuong Manh Le Date: Thu, 19 Jan 2023 10:34:14 +0700 Subject: [PATCH] cmd/ctrld: fix wrong stop command alias It's "stopCmd", not "startCmd" --- cmd/ctrld/cli.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/ctrld/cli.go b/cmd/ctrld/cli.go index 1db8b61..f1f8429 100644 --- a/cmd/ctrld/cli.go +++ b/cmd/ctrld/cli.go @@ -391,7 +391,7 @@ func initCLI() { Use: "stop", Short: "Quick stop service and remove DNS from interface", Run: func(cmd *cobra.Command, args []string) { - startCmd.Run(cmd, args) + stopCmd.Run(cmd, args) }, } stopCmdAlias.Flags().StringVarP(&iface, "iface", "", "auto", `Reset DNS setting for iface, "auto" means the default interface gateway`)