Skip to content

Commit

Permalink
Remove default InsecureSkipVerify for TLS
Browse files Browse the repository at this point in the history
  • Loading branch information
wallyqs authored Dec 10, 2019
1 parent ae2b2ee commit bc628a4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions server/core/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,12 +375,6 @@ func (server *AccountServer) createHTTPClient() *http.Client {
MaxIdleConnsPerHost: 1,
}

if tlsConf.Cert != "" {
tr.TLSClientConfig = &tls.Config{
InsecureSkipVerify: true,
}
}

client := http.Client{
Transport: tr,
Timeout: timeout,
Expand Down

0 comments on commit bc628a4

Please sign in to comment.