Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7a70fa commit e0e73f6Copy full SHA for e0e73f6
lib/dns.js
@@ -65,11 +65,7 @@ function onlookup(err, addresses) {
65
if (err) {
66
return this.callback(dnsException(err, 'getaddrinfo', this.hostname));
67
}
68
- if (this.family) {
69
- this.callback(null, addresses[0], this.family);
70
- } else {
71
- this.callback(null, addresses[0], isIP(addresses[0]));
72
- }
+ this.callback(null, addresses[0], this.family || isIP(addresses[0]));
73
74
75
0 commit comments