Files
2026-07-26 00:09:57 +08:00

21 lines
306 B
Go

package cmd
import (
"trojan/trojan"
"github.com/spf13/cobra"
)
// portCmd represents the info command
var portCmd = &cobra.Command{
Use: "port",
Short: "修改trojan端口",
Run: func(cmd *cobra.Command, args []string) {
trojan.ChangePort()
},
}
func init() {
rootCmd.AddCommand(portCmd)
}