private static boolean passValidate(String ipStr, String pattern) {
        String[] ipStrArr = ipStr.split("\\.");
        String[] patternArr = pattern.split("\\.");
        if (ipStrArr.length != 4 || patternArr.length != 4) {
            return false;
        }
        int end = ipStrArr.length;
        if (patternArr[3].contains("-")) {
            end = 3;
            String[] rangeArr = patternArr[3].split("-");
            int from = Integer.valueOf(rangeArr[0]).intValue();
            int to = Integer.valueOf(rangeArr[1]).intValue();
            int value = Integer.valueOf(ipStrArr[3]).intValue();
            if (value < from || value > to) {
                return false;
            }
        }
        for (int i = 0; i < end; i++) {
            if (patternArr[i].equals("*")) {
                continue;
            }
            if (!patternArr[i].equalsIgnoreCase(ipStrArr[i])) {
                return false;
            }
        }
        return true;
    }