add basic routing options, auto update routing assets,use ruleset, remove geo assets

This commit is contained in:
hiddify-com
2024-07-04 21:04:44 +02:00
parent 93f4bbca32
commit c6d34e7455
27 changed files with 773 additions and 835 deletions

View File

@@ -9,6 +9,7 @@ class SingboxRule with _$SingboxRule {
@JsonSerializable(fieldRename: FieldRename.kebab)
const factory SingboxRule({
String? ruleSetUrl,
String? domains,
String? ip,
String? port,
@@ -17,8 +18,7 @@ class SingboxRule with _$SingboxRule {
@Default(RuleOutbound.proxy) RuleOutbound outbound,
}) = _SingboxRule;
factory SingboxRule.fromJson(Map<String, dynamic> json) =>
_$SingboxRuleFromJson(json);
factory SingboxRule.fromJson(Map<String, dynamic> json) => _$SingboxRuleFromJson(json);
}
enum RuleOutbound { proxy, bypass, block }