mirror of
https://github.com/go-i2p/go-meta-dialer.git
synced 2025-06-08 01:09:15 -04:00
fmt
This commit is contained in:
@ -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(),
|
||||
|
@ -85,5 +85,4 @@ func main() {
|
||||
log.Println("Response Status:", resp.Status)
|
||||
}(conn)
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user