From e38dfdfc7aae660e3fa88046e818f51c116318fd Mon Sep 17 00:00:00 2001 From: problematicconsumer Date: Tue, 5 Sep 2023 19:00:40 +0330 Subject: [PATCH] Add tun stack option --- shared/config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shared/config.go b/shared/config.go index ef20188..391a056 100644 --- a/shared/config.go +++ b/shared/config.go @@ -21,6 +21,7 @@ type ConfigOptions struct { MixedPort uint16 `json:"mixed-port"` LocalDnsPort uint16 `json:"local-dns-port"` MTU uint32 `json:"mtu"` + TUNStack string `json:"tun-stack"` ConnectionTestUrl string `json:"connection-test-url"` URLTestInterval option.Duration `json:"url-test-interval"` EnableClashApi bool `json:"enable-clash-api"` @@ -129,6 +130,7 @@ func BuildConfig(configOpt ConfigOptions, input option.Options) option.Options { Type: C.TypeTun, Tag: "tun-in", TunOptions: option.TunInboundOptions{ + Stack: configOpt.TUNStack, MTU: configOpt.MTU, AutoRoute: true, StrictRoute: true,