fix: fix typo

This commit is contained in:
Fu Diwei
2025-10-15 13:14:49 +08:00
parent f0bc816879
commit f28e39924f
+1 -1
View File
@@ -24,7 +24,7 @@ func MatchHostname(match, candidate string) bool {
}
mockCert := &x509.Certificate{}
if ip := net.ParseIP(candidate); ip != nil {
if ip := net.ParseIP(match); ip != nil {
mockCert.IPAddresses = []net.IP{ip}
} else {
mockCert.DNSNames = []string{match}