geosite:category-ru and ir

This commit is contained in:
mhsanaei 2024-09-13 11:15:55 +02:00
parent 88d0fb9753
commit 2938694c45
2 changed files with 3 additions and 4 deletions

View File

@ -706,9 +706,7 @@
let category = ''; let category = '';
if (["cn", "private"].includes(d)) { if (["cn", "private"].includes(d)) {
category = ""; category = "";
} else if (d === 'ru') { } else if (["ru", "ir"].includes(d)) {
category = "category-gov-";
} else {
category = "category-"; category = "category-";
} }
rules[0].domain.push("geosite:" + category + d); rules[0].domain.push("geosite:" + category + d);

View File

@ -850,10 +850,11 @@
"regexp:.*\\.cn$" "regexp:.*\\.cn$"
], ],
ru: [ ru: [
"geosite:category-gov-ru", "geosite:category-ru", //https://github.com/v2fly/domain-list-community/blob/master/data/category-ru
"regexp:.*\\.ru$" "regexp:.*\\.ru$"
], ],
ir: [ ir: [
"geosite:category-ir", // https://github.com/v2fly/domain-list-community/blob/master/data/category-ir
"regexp:.*\\.ir$", "regexp:.*\\.ir$",
"regexp:.*\\.xn--mgba3a4f16a$", // .ایران "regexp:.*\\.xn--mgba3a4f16a$", // .ایران
"ext:geosite_IR.dat:ir" "ext:geosite_IR.dat:ir"