fix: ntp not apply to reality client

This commit is contained in:
wwqgtxx 2025-09-17 10:46:13 +08:00
parent 16836ea465
commit 30bead4e2e

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)