From 7f65c501c684bd949a31000435071badfa008f6f Mon Sep 17 00:00:00 2001
From: GyDi <zzzgydi@gmail.com>
Date: Sat, 5 Nov 2022 15:50:06 +0800
Subject: [PATCH] feat: add sub-rules

---
 src-tauri/src/config/field.rs | 3 ++-
 src/utils/clash-fields.ts     | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src-tauri/src/config/field.rs b/src-tauri/src/config/field.rs
index c65024c..7105467 100644
--- a/src-tauri/src/config/field.rs
+++ b/src-tauri/src/config/field.rs
@@ -20,7 +20,7 @@ pub const DEFAULT_FIELDS: [&str; 5] = [
   "rule-providers",
 ];
 
-pub const OTHERS_FIELDS: [&str; 20] = [
+pub const OTHERS_FIELDS: [&str; 21] = [
   "tun",
   "dns",
   "ebpf",
@@ -39,6 +39,7 @@ pub const OTHERS_FIELDS: [&str; 20] = [
   "bind-address",
   "authentication",
   "sniffer",        // meta
+  "sub-rules",      // meta
   "geodata-mode",   // meta
   "tcp-concurrent", // meta
 ];
diff --git a/src/utils/clash-fields.ts b/src/utils/clash-fields.ts
index f0c9bfb..9065b49 100644
--- a/src/utils/clash-fields.ts
+++ b/src/utils/clash-fields.ts
@@ -37,6 +37,7 @@ export const OTHERS_FIELDS = [
   "bind-address",
   "authentication",
   "sniffer", // meta
+  "sub-rules", // meta
   "geodata-mode", // meta
   "tcp-concurrent", // meta
 ] as const;
-- 
GitLab