Add russia region
This commit is contained in:
@@ -90,6 +90,16 @@ List<Rule> rules(RulesRef ref) => switch (ref.watch(regionNotifierProvider)) {
|
||||
outbound: RuleOutbound.bypass,
|
||||
),
|
||||
],
|
||||
Region.ru => [
|
||||
const Rule(
|
||||
id: "id",
|
||||
name: "name",
|
||||
enabled: true,
|
||||
domains: "domain:.ru",
|
||||
ip: "geoip:ru",
|
||||
outbound: RuleOutbound.bypass,
|
||||
),
|
||||
],
|
||||
_ => [],
|
||||
};
|
||||
|
||||
|
||||
@@ -61,11 +61,13 @@ enum PerAppProxyMode {
|
||||
enum Region {
|
||||
ir,
|
||||
cn,
|
||||
ru,
|
||||
other;
|
||||
|
||||
String present(TranslationsEn t) => switch (this) {
|
||||
ir => t.settings.general.regions.ir,
|
||||
cn => t.settings.general.regions.cn,
|
||||
ru => t.settings.general.regions.ru,
|
||||
other => t.settings.general.regions.other,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user