From 1d46d72186a3132345b748d7936be61f2008a162 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Tue, 29 Oct 2024 12:51:11 +0100 Subject: [PATCH] [tun] disable auto_route in server #207 --- frontend/src/types/inbounds.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/types/inbounds.ts b/frontend/src/types/inbounds.ts index 633771a..e2ec33c 100644 --- a/frontend/src/types/inbounds.ts +++ b/frontend/src/types/inbounds.ts @@ -171,7 +171,7 @@ export interface Tun extends InboundBasics { endpoint_independent_nat?: boolean udp_timeout?: string stack?: string - // auto_route?: boolean + auto_route?: boolean // gso?: boolean // strict_route?: boolean // iproute2_table_index?: number @@ -252,7 +252,7 @@ const defaultValues: Record = { tuic: { type: InTypes.TUIC, users: [], congestion_control: "cubic", tls: { enabled: true } }, hysteria2: { type: InTypes.Hysteria2, users: [], tls: { enabled: true } }, vless: { type: InTypes.VLESS, users: [], tls: {}, multiplex: {}, transport: {} }, - tun: { type: InTypes.Tun, mtu: 9000, stack: 'system', udp_timeout: '5m' }, + tun: { type: InTypes.Tun, mtu: 9000, stack: 'system', udp_timeout: '5m', auto_route: false }, redirect: { type: InTypes.Redirect }, tproxy: { type: InTypes.TProxy }, }