Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions znet/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,8 @@ func (c *Client) Restart() {
var err error
if c.useTLS {
// TLS encryption
config := &tls.Config{
// Skip certificate verification here because the CA certificate of the certificate issuer is not authenticated
// (这里是跳过证书验证,因为证书签发机构的CA证书是不被认证的)
InsecureSkipVerify: true,
}
// Use default TLS verification (certificate chain + hostname verification enabled).
config := &tls.Config{}
d := &tls.Dialer{
Config: config,
}
Expand Down
Loading