code: function ip2number(str) {
    const strArr = str.split('.');
    // eslint-disable-next-line no-bitwise
    return (Number(strArr[0]) << 24) + (Number(strArr[1]) << 16) + (Number(strArr[2]) << 8) + (Number(strArr[3]));
  }
docs: change ip2number
  @param {String} str
  @returns {Number}