x509.checkIP(ip[, options])
ip
<string>options
<Object>- 返回: <string> | <undefined> 如果证书匹配,则返回
ip
,如果不匹配,则返回undefined
。
检查证书是否与给定的 IP 地址(IPv4 或 IPv6)匹配。
ip
<string>options
<Object>- Returns: <string> | <undefined> Returns
ip
if the certificate matches,undefined
if it does not.
Checks whether the certificate matches the given IP address (IPv4 or IPv6).