Uh oh!
There was an error while loading. Please reload this page.
dns: use isIp consistently - #5804
Conversation
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: Reviewed-By: Reviewed-By:
1eb87bf to
65acb8dCompareTrott
commented
Mar 19, 2016
LGTM if CI is green |
benjamingr
commented
Mar 19, 2016
cjihrig
commented
Mar 20, 2016
You might get some push back because a lot of this is style only. That said, dropping |
thefourtheye
commented
Mar 20, 2016
LGTM. |
benjamingr
commented
Mar 20, 2016
@cjihrig well, this specific change isn't style only (it's just dropping the dependency). As for the others, I don't consider the push-back negative, as long as people are discussing it and we can reach consensus and improve the code base I'm all for it (and I know this requires some extra work and writing a lot of code that'll never make it in and I'm fine with that too). Thanks for the concern :) |
evanlucas
commented
Mar 20, 2016
LGTM if CI is happy |
jasnell
commented
Mar 21, 2016
LGTM |
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>
jasnell
commented
Mar 21, 2016
Landed in b929988 |
benjamingr
commented
Mar 21, 2016
Thanks :) |
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> Conflicts: lib/dns.js
MylesBorins
commented
Mar 30, 2016
this change is not landing cleanly on v4 due to @benjamingr would you be able to manually backport to v4 and send a PR? |
benjamingr
commented
Mar 31, 2016
Sure |
MylesBorins
commented
Apr 8, 2016
@benjamingr ping 😄 |
MylesBorins
commented
May 17, 2016
@benjamingr ping |
MylesBorins
commented
Jun 1, 2016
@benjamingr hey buddy... hows it going? |
benjamingr
commented
Jun 2, 2016
I totally forgot about this again - so not good :D |
MylesBorins
commented
Aug 30, 2016
@benjamingr hows it going :P |
Affected core subsystem(s)
dns
Description of change
This is a more modular take on #5762 ,
Currently the DNS module imports isIP from both cares and
netanduses both of them both throughout the code base. This PR removes the
direct dependency
dnshas onnetand usesisIpfrom c-ares allthe time. Note that both functions do the same thing.