Skip to content

Commit

Permalink
修改错误信息
Browse files Browse the repository at this point in the history
  • Loading branch information
MaricoHan committed Apr 26, 2022
1 parent 1f06636 commit 621b55e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func CopyBytes(bz []byte) (ret []byte) {
// GetTLSCertPool get certificates from target server
func GetTLSCertPool(gateWayURL string) ([]*x509.Certificate, error) {
if !strings.Contains(strings.ToLower(gateWayURL), "https://") {
return nil, errors.New("TLS is enabled, but the address is http")
return nil, errors.New("this function requires HTTPS protocol")
}
tr := &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
Expand Down

0 comments on commit 621b55e

Please sign in to comment.