修复QX IP-CIDR分流no-resolve解析不正确的问题

This commit is contained in:
Peng-YM 2020-11-26 19:59:27 +08:00
parent 99514f521b
commit eef1559706
2 changed files with 4 additions and 8 deletions

View File

@ -2743,12 +2743,8 @@ var RuleUtils = (function () {
"IP-CIDR6": "IP6-CIDR"
};
let output = `${TRANSFORM[rule.type] || rule.type},${rule.content}`;
if (rule.type === "IP-CIDR" || rule.type === "IP-CIDR6") {
output += rule.options ? `,${rule.options[0]}` : "";
}
output += ",SUB-STORE"
return output;
// QX does not support the no-resolve option
return `${TRANSFORM[rule.type] || rule.type},${rule.content},SUB-STORE`;
}
return {type, func};
}

File diff suppressed because one or more lines are too long