fix: add valid clash field
This commit is contained in:
parent
5564c966a5
commit
35de2334fb
@ -2,7 +2,20 @@ import { emit, listen, Event } from "@tauri-apps/api/event";
|
|||||||
import { appWindow } from "@tauri-apps/api/window";
|
import { appWindow } from "@tauri-apps/api/window";
|
||||||
import ignoreCase from "@/utils/ignore-case";
|
import ignoreCase from "@/utils/ignore-case";
|
||||||
|
|
||||||
const DEFAULT_FIELDS = [
|
export const HANDLE_FIELDS = [
|
||||||
|
"port",
|
||||||
|
"socks-port",
|
||||||
|
"redir-port",
|
||||||
|
"tproxy-port",
|
||||||
|
"mixed-port",
|
||||||
|
"allow-lan",
|
||||||
|
"mode",
|
||||||
|
"log-level",
|
||||||
|
"ipv6",
|
||||||
|
"external-controller",
|
||||||
|
];
|
||||||
|
|
||||||
|
export const DEFAULT_FIELDS = [
|
||||||
"rules",
|
"rules",
|
||||||
"proxies",
|
"proxies",
|
||||||
"proxy-groups",
|
"proxy-groups",
|
||||||
@ -10,15 +23,26 @@ const DEFAULT_FIELDS = [
|
|||||||
"rule-providers",
|
"rule-providers",
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
const USE_FLAG_FIELDS = [
|
export const USE_FLAG_FIELDS = [
|
||||||
"tun",
|
"tun",
|
||||||
"dns",
|
"dns",
|
||||||
|
"ebpf",
|
||||||
"hosts",
|
"hosts",
|
||||||
"script",
|
"script",
|
||||||
"profile",
|
"profile",
|
||||||
"payload",
|
"payload",
|
||||||
|
"auto-redir",
|
||||||
|
"experimental",
|
||||||
"interface-name",
|
"interface-name",
|
||||||
"routing-mark",
|
"routing-mark",
|
||||||
|
"tproxy-port",
|
||||||
|
"iptables",
|
||||||
|
"external-ui",
|
||||||
|
"bind-address",
|
||||||
|
"authentication",
|
||||||
|
"sniffer", // meta
|
||||||
|
"geodata-mode", // meta
|
||||||
|
"tcp-concurrent", // meta
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
12
src/services/types.d.ts
vendored
12
src/services/types.d.ts
vendored
@ -178,6 +178,18 @@ declare namespace CmdType {
|
|||||||
"append-proxies"?: any[];
|
"append-proxies"?: any[];
|
||||||
"prepend-proxy-groups"?: any[];
|
"prepend-proxy-groups"?: any[];
|
||||||
"append-proxy-groups"?: any[];
|
"append-proxy-groups"?: any[];
|
||||||
|
// fix
|
||||||
|
ebpf?: any;
|
||||||
|
experimental?: any;
|
||||||
|
iptables?: any;
|
||||||
|
sniffer?: any;
|
||||||
|
authentication?: any;
|
||||||
|
"bind-address"?: any;
|
||||||
|
"external-ui"?: any;
|
||||||
|
"auto-redir"?: any;
|
||||||
|
"tproxy-port"?: any;
|
||||||
|
"geodata-mode"?: any;
|
||||||
|
"tcp-concurrent"?: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
// partial of the clash config
|
// partial of the clash config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user