Searched refs:isIP (Results 1 – 15 of 15) sorted by relevance
27 assert.strictEqual(net.isIP('127.0.0.1'), 4);28 assert.strictEqual(net.isIP('x127.0.0.1'), 0);29 assert.strictEqual(net.isIP('example.com'), 0);30 assert.strictEqual(net.isIP('0000:0000:0000:0000:0000:0000:0000:0000'), 6);31 assert.strictEqual(net.isIP('0000:0000:0000:0000:0000:0000:0000:0000::0000'),33 assert.strictEqual(net.isIP('1050:0:0:0:5:600:300c:326b'), 6);34 assert.strictEqual(net.isIP('2001:252:0:1::2008:6'), 6);35 assert.strictEqual(net.isIP('2001:dead:beef:1::2008:6'), 6);36 assert.strictEqual(net.isIP('2001::'), 6);37 assert.strictEqual(net.isIP('2001:dead::'), 6);[all …]
17 const { isIP } = require('internal/net');91 const host = isIP(val[0]) === 6 ? `[${val[0]}]` : val[0];105 let ipVersion = isIP(serv);114 ipVersion = isIP(match[1]);130 ipVersion = isIP(hostIP);
50 const { isIP } = require('internal/net');87 const family = this.family || isIP(addresses[0]);107 family: family || isIP(addresses[i]),125 const matchedFamily = isIP(hostname);241 if (isIP(address) === 0)
32 const { isIP } = require('internal/net');110 this.callback(null, addresses[0], this.family || isIP(addresses[0]));127 family: family || isIP(addr),205 const matchedFamily = isIP(hostname);260 if (isIP(address) === 0)
49 isIP,1267 if (localAddress && !isIP(localAddress)) {1302 const addressType = isIP(host);1371 } else if (!isIP(ip)) {1419 if (isIP(ip) && (addressType === 4 || addressType === 6)) {1432 if (!isIP(firstIp)) {2332 isIP: isIP, property
306 if (net.isIP(hostname)) {
369 if (net.isIP(servername))
1738 if (!ipServernameWarned && net.isIP(options.servername)) {
45 function isIP(s) { function71 isIP, property
1675 ## `net.isIP(input)`1689 net.isIP('::1'); // returns 61690 net.isIP('127.0.0.1'); // returns 41691 net.isIP('127.000.000.001'); // returns 01692 net.isIP('127.0.0.1/24'); // returns 01693 net.isIP('fhqwhgads'); // returns 0
231 … if (localAddress != null && (typeof localAddress !== 'string' || net.isIP(localAddress) === 0)) {1186 assert(net.isIP(ip))
7336 … if (localAddress != null && (typeof localAddress !== "string" || net.isIP(localAddress) === 0)) {8036 assert(net.isIP(ip));
1043 …/github.com/nodejs/node/commit/b353ded677)] - **doc**: expand entries for isIP(), isIPv4(), and is…
454 …/github.com/nodejs/node/commit/084decdcf8)] - **doc**: expand entries for isIP(), isIPv4(), and is…
6313 servername: net.isIP(servername) ? void 0 : servername9011 servername: net.isIP(servername) ? void 0 : servername30181 servername: !servername || net.isIP(servername) ? void 0 : servername