From 30bead4e2eaa9e4fc62fb77c03acff90e1b150da Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Wed, 17 Sep 2025 10:46:13 +0800 Subject: [PATCH] fix: ntp not apply to reality client --- component/tls/reality.go | 1 + 1 file changed, 1 insertion(+) diff --git a/component/tls/reality.go b/component/tls/reality.go index 2de5c46e..cd6a4753 100644 --- a/component/tls/reality.go +++ b/component/tls/reality.go @@ -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)