Home
last modified time | relevance | path

Searched refs:isIP (Results 1 – 15 of 15) sorted by relevance

/third_party/node/test/parallel/
Dtest-net-isip.js27 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 …]
/third_party/node/lib/internal/dns/
Dutils.js17 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);
Dpromises.js50 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)
/third_party/node/lib/
Ddns.js32 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)
Dnet.js49 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
Dtls.js306 if (net.isIP(hostname)) {
D_http_agent.js369 if (net.isIP(servername))
D_tls_wrap.js1738 if (!ipServernameWarned && net.isIP(options.servername)) {
/third_party/node/lib/internal/
Dnet.js45 function isIP(s) { function
71 isIP, property
/third_party/node/doc/api/
Dnet.md1675 ## `net.isIP(input)`
1689 net.isIP('::1'); // returns 6
1690 net.isIP('127.0.0.1'); // returns 4
1691 net.isIP('127.000.000.001'); // returns 0
1692 net.isIP('127.0.0.1/24'); // returns 0
1693 net.isIP('fhqwhgads'); // returns 0
/third_party/node/deps/undici/src/lib/
Dclient.js231 … if (localAddress != null && (typeof localAddress !== 'string' || net.isIP(localAddress) === 0)) {
1186 assert(net.isIP(ip))
/third_party/node/deps/undici/
Dundici.js7336 … if (localAddress != null && (typeof localAddress !== "string" || net.isIP(localAddress) === 0)) {
8036 assert(net.isIP(ip));
/third_party/node/doc/changelogs/
DCHANGELOG_V17.md1043 …/github.com/nodejs/node/commit/b353ded677)] - **doc**: expand entries for isIP(), isIPv4(), and is…
DCHANGELOG_V16.md454 …/github.com/nodejs/node/commit/084decdcf8)] - **doc**: expand entries for isIP(), isIPv4(), and is…
/third_party/node/deps/corepack/dist/lib/
Dcorepack.cjs6313 servername: net.isIP(servername) ? void 0 : servername
9011 servername: net.isIP(servername) ? void 0 : servername
30181 servername: !servername || net.isIP(servername) ? void 0 : servername