Skip to content

Commit

Permalink
[tun] disable auto_route in server alireza0#207
Browse files Browse the repository at this point in the history
  • Loading branch information
alireza0 committed Oct 29, 2024
1 parent 7554b02 commit 1d46d72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/types/inbounds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -252,7 +252,7 @@ const defaultValues: Record<InType, Inbound> = {
tuic: <TUIC>{ type: InTypes.TUIC, users: <TuicUser[]>[], congestion_control: "cubic", tls: { enabled: true } },
hysteria2: <Hysteria2>{ type: InTypes.Hysteria2, users: <NamePass[]>[], tls: { enabled: true } },
vless: <VLESS>{ type: InTypes.VLESS, users: <VlessUser[]>[], tls: {}, multiplex: {}, transport: {} },
tun: <Tun>{ type: InTypes.Tun, mtu: 9000, stack: 'system', udp_timeout: '5m' },
tun: <Tun>{ type: InTypes.Tun, mtu: 9000, stack: 'system', udp_timeout: '5m', auto_route: false },
redirect: <Redirect>{ type: InTypes.Redirect },
tproxy: <TProxy>{ type: InTypes.TProxy },
}
Expand Down

0 comments on commit 1d46d72

Please sign in to comment.