增加防探测功能,增加流量加密功能

This commit is contained in:
wenyifan
2022-09-09 15:29:41 +08:00
parent c2ab6cbe5f
commit a064f72104
12 changed files with 185 additions and 79 deletions

View File

@ -1,6 +1,7 @@
package cmd
import (
"fmt"
"github.com/spf13/cobra"
"shadowTLS/shadow"
)
@ -17,6 +18,10 @@ var (
Use: "client",
Short: "Client mode",
Run: func(cmd *cobra.Command, args []string) {
if !verifyAndParseEncryptionKey() {
fmt.Println("[Client] Invalid encryption key length")
return
}
client := shadow.NewClient(clientParams.ListenAddr, clientParams.ServerAddr, clientParams.SNI)
client.Start()
},