Files
node/lib
Rich Trott 09cdc37824 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: https://github.com/nodejs/node/pull/27081
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2019-04-16 16:19:17 -07:00
..
2019-04-15 17:21:34 +02:00
2018-11-20 10:42:31 -08:00
2019-04-03 02:35:18 +02:00
2018-07-16 15:55:15 -07:00
2019-03-30 13:16:39 +01:00
2019-04-08 11:23:09 +02:00