From f28e39924fdd9d7e8ac42d3ff97a0e5119ef3c3c Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Wed, 15 Oct 2025 13:14:49 +0800 Subject: [PATCH] fix: fix typo --- pkg/utils/cert/hostname.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/utils/cert/hostname.go b/pkg/utils/cert/hostname.go index af4ae5d9a..722a6418c 100644 --- a/pkg/utils/cert/hostname.go +++ b/pkg/utils/cert/hostname.go @@ -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}