| 123456789101112131415 |
- import { z } from 'zod';
- export const TunInboundSettingsSchema = z.object({
- name: z.string().default('xray0'),
- mtu: z.number().int().min(0).default(1500),
- gateway: z.array(z.string()).default([]),
- dns: z.array(z.string()).default([]),
- userLevel: z.number().int().min(0).default(0),
- autoSystemRoutingTable: z.array(z.string()).default([]),
- autoOutboundsInterface: z.string().default('auto'),
- // xray-core 26.9.30: the first acts on Linux, the second ("dns", "misconfigtun") on Windows.
- autoSystemDnsToGateway: z.boolean().optional(),
- autoSystemWfpBlockLeak: z.array(z.string()).optional(),
- });
- export type TunInboundSettings = z.infer<typeof TunInboundSettingsSchema>;
|