shadowTLS/cmd/root.go
2022-09-01 15:24:36 +08:00

26 lines
386 B
Go

package cmd
import (
"fmt"
"github.com/spf13/cobra"
"os"
)
var (
rootCmd = &cobra.Command{
Use: "shadowTLS",
Short: "Pack TCP connection and perform real TLS handshake to confuse firewall",
}
)
func init() {
rootCmd.CompletionOptions.DisableDefaultCmd = true
}
func Execute() {
if err := rootCmd.Execute(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}