mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-27 16:00:09 +08:00
48 lines
1.5 KiB
TypeScript
48 lines
1.5 KiB
TypeScript
import type { TunStack } from "./TunStack";
|
|
export type TunConfig = {
|
|
enable: boolean;
|
|
device: string;
|
|
stack: TunStack;
|
|
dnsHijack: Array<string>;
|
|
autoRoute: boolean;
|
|
autoDetectInterface: boolean;
|
|
mtu?: number;
|
|
gso?: boolean;
|
|
gsoMaxSize?: number;
|
|
inet4Address?: Array<string>;
|
|
inet6Address?: Array<string>;
|
|
iproute2TableIndex?: number;
|
|
iproute2RuleIndex?: number;
|
|
autoRedirect?: boolean;
|
|
autoRedirectInputMark?: number;
|
|
autoRedirectOutputMark?: number;
|
|
loopbackAddress?: string;
|
|
strictRoute?: boolean;
|
|
routeAddress?: Array<string>;
|
|
routeAddressSet?: Array<string>;
|
|
routeExcludeAddress?: Array<string>;
|
|
routeExcludeAddressSet?: Array<string>;
|
|
includeInterface?: Array<string>;
|
|
excludeInterface?: Array<string>;
|
|
includeUid?: Array<number>;
|
|
includeUidRange?: Array<string>;
|
|
excludeUid?: Array<number>;
|
|
excludeUidRange?: Array<string>;
|
|
excludeSrcPort?: Array<number>;
|
|
excludeSrcPortRange?: Array<string>;
|
|
excludeDstPort?: Array<number>;
|
|
excludeDstPortRange?: Array<string>;
|
|
includeAndroidUser?: Array<number>;
|
|
includePackage?: Array<string>;
|
|
excludePackage?: Array<string>;
|
|
endpointIndependentNat?: boolean;
|
|
udpTimeout?: bigint;
|
|
fileDescriptor: number;
|
|
inet4RouteAddress?: Array<string>;
|
|
inet6RouteAddress?: Array<string>;
|
|
inet4RouteExcludeAddress?: Array<string>;
|
|
inet6RouteExcludeAddress?: Array<string>;
|
|
recvmsgx?: boolean;
|
|
sendmsgx?: boolean;
|
|
};
|