mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-11-30 07:58:31 +00:00
fix: ntp not apply to reality client
This commit is contained in:
1 parent
16836ea465
commit
30bead4e2e
1 file changed
+1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user