lib/multicast-events.js
function verifyAddress(address) {
  var ifs = os.networkInterfaces();
  var nics = Object.keys(ifs);
  var i, j, match = false;
  nicLoop:
    for (i = 0; i < nics.length; i++) {
      var nic = ifs[nics[i]];
      for (j = 0; j < nic.length; j++) {
        if (nic[j].address === address && !nic[j].internal) {
          match = true;
          break nicLoop;
        }
      }
    }
  return match;
}
function verifyAddress(address) {
  var ifs = os.networkInterfaces();
  var nics = Object.keys(ifs);
  var i, j, match = false;
  nicLoop:
    for (i = 0; i < nics.length; i++) {
      var nic = ifs[nics[i]];
      for (j = 0; j < nic.length; j++) {
        if (nic[j].address === address && !nic[j].internal) {
          match = true;
          break nicLoop;
        }
      }
    }
  return match;
}
function verifyAddress ( address ) { var ifs = os . networkInterfaces ( ) ; var nics = Object . keys ( ifs ) ; var i , j , match = false ; nicLoop : for ( i = 0 ; i < nics . length ; i ++ ) { var nic = ifs [ nics [ i ] ] ; for ( j = 0 ; j < nic . length ; j ++ ) { if ( nic [ j ] . address === address && ! nic [ j ] . internal ) { match = true ; break nicLoop ; } } } return match ; }
Verify that a provided address is configured on a NIC

@param {String} address The address to verify
@return {Boolean} True if the address is configured on a NIC
Verify that a provided address is configured on a NIC