This commit is contained in:
wenyifan
2022-09-01 15:24:36 +08:00
commit 7213e64b89
15 changed files with 631 additions and 0 deletions

25
cmd/root.go Normal file
View File

@ -0,0 +1,25 @@
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)
}
}