cmd/ctrld: fix wrong stop command alias

It's "stopCmd", not "startCmd"
This commit is contained in:
Cuong Manh Le
2023-01-19 10:34:14 +07:00
committed by Cuong Manh Le
parent a318e19e33
commit 1f2bd90308

View File

@@ -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`)