This commit is contained in:
eyedeekay
2025-05-26 21:23:08 -04:00
parent 793aa2de23
commit aafbeeb29f
2 changed files with 4 additions and 1 deletions

View File

@ -35,6 +35,10 @@ func NewMetaHTTPClient(rootCAs *x509.CertPool) *MetaHTTPClient {
}
// Use standard verification for all other domains
if len(state.PeerCertificates) == 0 {
return fmt.Errorf("no peer certificates provided")
}
opts := x509.VerifyOptions{
DNSName: state.ServerName,
Intermediates: x509.NewCertPool(),

View File

@ -85,5 +85,4 @@ func main() {
log.Println("Response Status:", resp.Status)
}(conn)
}
}