Skip to content
Snippets Groups Projects
clash-fields.ts 921 B
Newer Older
GyDi's avatar
GyDi committed
export const HANDLE_FIELDS = [
GyDi's avatar
GyDi committed
  "mode",
GyDi's avatar
GyDi committed
  "port",
  "socks-port",
  "mixed-port",
  "allow-lan",
  "log-level",
  "ipv6",
  "secret",
  "external-controller",
];

export const DEFAULT_FIELDS = [
  "proxies",
  "proxy-groups",
  "proxy-providers",
GyDi's avatar
GyDi committed
  "rules",
GyDi's avatar
GyDi committed
  "rule-providers",
] as const;

export const OTHERS_FIELDS = [
  "dns",
GyDi's avatar
GyDi committed
  "tun",
GyDi's avatar
GyDi committed
  "ebpf",
  "hosts",
  "script",
  "profile",
  "payload",
GyDi's avatar
GyDi committed
  "tunnels",
GyDi's avatar
GyDi committed
  "auto-redir",
  "experimental",
  "interface-name",
  "routing-mark",
  "redir-port",
  "tproxy-port",
  "iptables",
  "external-ui",
  "bind-address",
  "authentication",
GyDi's avatar
GyDi committed
  "tls", // meta
GyDi's avatar
GyDi committed
  "sniffer", // meta
GyDi's avatar
GyDi committed
  "geox-url", // meta
GyDi's avatar
GyDi committed
  "listeners", // meta
GyDi's avatar
GyDi committed
  "sub-rules", // meta
GyDi's avatar
GyDi committed
  "geodata-mode", // meta
GyDi's avatar
GyDi committed
  "unified-delay", // meta
GyDi's avatar
GyDi committed
  "tcp-concurrent", // meta
GyDi's avatar
GyDi committed
  "enable-process", // meta
GyDi's avatar
GyDi committed
  "find-process-mode", // meta
  "external-controller-tls", // meta
  "global-client-fingerprint", // meta
GyDi's avatar
GyDi committed
] as const;