Skip to content
Snippets Groups Projects
Unverified Commit e1c8f1fe authored by GyDi's avatar GyDi
Browse files

fix: add clash fields

parent 6e19a4ab
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ pub const DEFAULT_FIELDS: [&str; 5] = [ ...@@ -20,7 +20,7 @@ pub const DEFAULT_FIELDS: [&str; 5] = [
"rule-providers", "rule-providers",
]; ];
pub const OTHERS_FIELDS: [&str; 21] = [ pub const OTHERS_FIELDS: [&str; 23] = [
"tun", "tun",
"dns", "dns",
"ebpf", "ebpf",
...@@ -28,6 +28,7 @@ pub const OTHERS_FIELDS: [&str; 21] = [ ...@@ -28,6 +28,7 @@ pub const OTHERS_FIELDS: [&str; 21] = [
"script", "script",
"profile", "profile",
"payload", "payload",
"tunnels", // clash dev
"auto-redir", "auto-redir",
"experimental", "experimental",
"interface-name", "interface-name",
...@@ -42,6 +43,7 @@ pub const OTHERS_FIELDS: [&str; 21] = [ ...@@ -42,6 +43,7 @@ pub const OTHERS_FIELDS: [&str; 21] = [
"sub-rules", // meta "sub-rules", // meta
"geodata-mode", // meta "geodata-mode", // meta
"tcp-concurrent", // meta "tcp-concurrent", // meta
"enable-process", // meta
]; ];
pub fn use_clash_fields() -> Vec<String> { pub fn use_clash_fields() -> Vec<String> {
......
...@@ -26,6 +26,7 @@ export const OTHERS_FIELDS = [ ...@@ -26,6 +26,7 @@ export const OTHERS_FIELDS = [
"script", "script",
"profile", "profile",
"payload", "payload",
"tunnels", // clash dev
"auto-redir", "auto-redir",
"experimental", "experimental",
"interface-name", "interface-name",
...@@ -40,4 +41,5 @@ export const OTHERS_FIELDS = [ ...@@ -40,4 +41,5 @@ export const OTHERS_FIELDS = [
"sub-rules", // meta "sub-rules", // meta
"geodata-mode", // meta "geodata-mode", // meta
"tcp-concurrent", // meta "tcp-concurrent", // meta
"enable-process", // meta
] as const; ] as const;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment