mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-15 13:41:23 +08:00
15 lines
422 B
Go
15 lines
422 B
Go
package ca
|
|
|
|
import (
|
|
"github.com/metacubex/mihomo/constant/features"
|
|
)
|
|
|
|
func init() {
|
|
// crypto/x509: certificate validation in Windows fails to validate IP in SAN
|
|
// https://github.com/golang/go/issues/37176
|
|
// As far as I can tell this is still the case on most older versions of Windows (but seems to be fixed in 10)
|
|
if features.WindowsMajorVersion < 10 && len(_CaCertificates) > 0 {
|
|
DisableSystemCa = true
|
|
}
|
|
}
|