Lines Matching refs:family
86 const family = this.family || isIP(addresses[0]);
87 this.resolve({ address: addresses[0], family });
99 const family = this.family;
106 family: family || isIP(addresses[i]),
118 * @param {0 | 4 | 6} family - The IP address family (4 or 6, or 0 for both).
127 * @property {0 | 4 | 6} family - The IP address type. 4 for IPv4 or 6 for IPv6, or 0 (for both).
129 function createLookupPromise(family, hostname, all, hints, verbatim) {
133 resolve(all ? [] : { address: null, family: family === 6 ? 6 : 4 });
140 const result = { address: hostname, family: matchedFamily };
147 req.family = family;
153 const err = getaddrinfo(req, hostname, family, hints, verbatim);
160 family,
175 * @param {0 | 4 | 6} [options.family=0] - The record family. Must be 4, 6, or 0 (for both).
183 let family = 0;
193 validateOneOf(options, 'family', validFamilies);
194 family = options;
203 if (options?.family != null) {
204 validateOneOf(options.family, 'options.family', validFamilies);
205 family = options.family;
217 return createLookupPromise(family, hostname, all, hints, verbatim);