How to use the isEqual function from ip

Find comprehensive JavaScript ip.isEqual code examples handpicked from public code repositorys.

375
376
377
378
379
380
381
382
383
384
385
function should_proxy(hostname) {
    const isIp = ip.isV4Format(hostname) || ip.isV6Format(hostname);


    for (const { kind, addr } of no_proxy_list) {
        if (isIp) {
            if (kind === 'IP' && ip.isEqual(addr, hostname)) {
                return false;
            }
            if (kind === 'CIDR' && ip.cidrSubnet(addr).contains(hostname)) {
                return false;
fork icon68
star icon227
watch icon0

+ 2 other calls in file