mirror of
https://github.com/certimate-go/certimate.git
synced 2026-09-24 23:10:13 +08:00
fix: fix typo
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user