增加防探测功能,增加流量加密功能
This commit is contained in:
@ -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()
|
||||
},
|
||||
|
Reference in New Issue
Block a user