From 91b77e5237367875fa392ef7ced4fafd189b4c96 Mon Sep 17 00:00:00 2001 From: GyDi Date: Sat, 18 Feb 2023 00:46:03 +0800 Subject: [PATCH] fix: add meta fields --- src-tauri/src/enhance/field.rs | 20 ++++++++++++-------- src/utils/clash-fields.ts | 4 ++++ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src-tauri/src/enhance/field.rs b/src-tauri/src/enhance/field.rs index 893e521..c18f6cf 100644 --- a/src-tauri/src/enhance/field.rs +++ b/src-tauri/src/enhance/field.rs @@ -20,7 +20,7 @@ pub const DEFAULT_FIELDS: [&str; 5] = [ "rule-providers", ]; -pub const OTHERS_FIELDS: [&str; 25] = [ +pub const OTHERS_FIELDS: [&str; 29] = [ "dns", "tun", "ebpf", @@ -39,13 +39,17 @@ pub const OTHERS_FIELDS: [&str; 25] = [ "external-ui", "bind-address", "authentication", - "tls", // meta - "sniffer", // meta - "listeners", // meta - "sub-rules", // meta - "geodata-mode", // meta - "tcp-concurrent", // meta - "enable-process", // meta + "tls", // meta + "sniffer", // meta + "geox-url", // meta + "listeners", // meta + "sub-rules", // meta + "geodata-mode", // meta + "tcp-concurrent", // meta + "enable-process", // meta + "find-process-mode", // meta + "external-controller-tls", // meta + "global-client-fingerprint", // meta ]; pub fn use_clash_fields() -> Vec { diff --git a/src/utils/clash-fields.ts b/src/utils/clash-fields.ts index 678d3a2..1e24db6 100644 --- a/src/utils/clash-fields.ts +++ b/src/utils/clash-fields.ts @@ -39,9 +39,13 @@ export const OTHERS_FIELDS = [ "authentication", "tls", // meta "sniffer", // meta + "geox-url", // meta "listeners", // meta "sub-rules", // meta "geodata-mode", // meta "tcp-concurrent", // meta "enable-process", // meta + "find-process-mode", // meta + "external-controller-tls", // meta + "global-client-fingerprint", // meta ] as const;