mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2025-12-24 11:51:34 +08:00
fix: ntp not apply to reality client
This commit is contained in:
parent
16836ea465
commit
30bead4e2e
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user