fix: ntp not apply to reality client

This commit is contained in:
wwqgtxx committed 2025-09-17 10:46:13 +08:00
1 parent 16836ea465
commit 30bead4e2e
1 file changed
+1
+1
View File
@@ -185,6 +185,7 @@ func (c *realityVerifier) VerifyPeerCertificate(rawCerts [][]byte, verifiedChain
opts := x509.VerifyOptions{
DNSName: c.serverName,
Intermediates: x509.NewCertPool(),
CurrentTime: ntp.Now(),
}
for _, cert := range certs[1:] {
opts.Intermediates.AddCert(cert)