dns: use isIp consistently · nodejs/node@b929988 · GitHub
Skip to content

Commit b929988

Browse files
benjamingrjasnell
authored andcommitted
dns: use isIp consistently
Currently the DNS module imports isIP from both cares and `net` and uses both of them both throughout the code base. This PR removes the direct dependency `dns` has on `net` and uses `isIp` from c-ares all the time. Note that both functions do the same thing. PR-URL: #5804 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent ccb7b45 commit b929988

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

lib/dns.js

Lines changed: 6 additions & 7 deletions

0 commit comments

Comments
 (0)