Change ir region rules

This commit is contained in:
problematicconsumer
2023-11-19 12:29:30 +03:30
parent 49bb62c828
commit ea8f86dff8
2 changed files with 4 additions and 4 deletions

View File

@@ -99,7 +99,7 @@ List<Rule> rules(RulesRef ref) => switch (ref.watch(regionNotifierProvider)) {
id: "id", id: "id",
name: "name", name: "name",
enabled: true, enabled: true,
domains: "domain:.ir", domains: "domain:.ir,geosite:ir",
ip: "geoip:ir", ip: "geoip:ir",
outbound: RuleOutbound.bypass, outbound: RuleOutbound.bypass,
), ),

View File

@@ -8,9 +8,9 @@ part 'rules.g.dart';
class Rule with _$Rule { class Rule with _$Rule {
@JsonSerializable(fieldRename: FieldRename.kebab) @JsonSerializable(fieldRename: FieldRename.kebab)
const factory Rule({ const factory Rule({
required String id, @JsonKey(includeToJson: false) required String id,
required String name, @JsonKey(includeToJson: false) required String name,
@Default(false) bool enabled, @JsonKey(includeToJson: false) @Default(false) bool enabled,
String? domains, String? domains,
String? ip, String? ip,
String? port, String? port,