mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-01-03 03:19:00 +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{
|
opts := x509.VerifyOptions{
|
||||||
DNSName: c.serverName,
|
DNSName: c.serverName,
|
||||||
Intermediates: x509.NewCertPool(),
|
Intermediates: x509.NewCertPool(),
|
||||||
|
CurrentTime: ntp.Now(),
|
||||||
}
|
}
|
||||||
for _, cert := range certs[1:] {
|
for _, cert := range certs[1:] {
|
||||||
opts.Intermediates.AddCert(cert)
|
opts.Intermediates.AddCert(cert)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user