feat: 规则中处理 GEOIP/GEOSITE, Loon 已支持 SRC-PORT/DEST-PORT/PROTOCOL

This commit is contained in:
xream
2024-03-15 08:49:36 +08:00
parent bbb9602f9f
commit 6ec8c29f6a
3 changed files with 8 additions and 5 deletions

View File

@@ -39,8 +39,7 @@ function AllRuleParser() {
content: params[1],
};
if (
rule.type === 'IP-CIDR' ||
rule.type === 'IP-CIDR6'
['IP-CIDR', 'IP-CIDR6', 'GEOIP'].includes(rule.type)
) {
rule.options = params.slice(2);
}