Please sign in to comment.
dns: do not indicate invalid IPs are IPv6
In lib/dns.js, use `isIP()` instead of `isIPv4()` for determining the `family` property in `lookup()`. If an invalid IP address is returned, the `family` currently provided is `6`. With this change, it will be `0`. Update documentation to reflect this. PR-URL: #27081 Reviewed-By: Richard Lau <firstname.lastname@example.org> Reviewed-By: Luigi Pinca <email@example.com> Reviewed-By: James M Snell <firstname.lastname@example.org> Reviewed-By: Ruben Bridgewater <email@example.com>
- Loading branch information...