From 89ecc6bf1238e12bbad26182f7a06f9aaf492b9f Mon Sep 17 00:00:00 2001 From: problematicconsumer Date: Tue, 14 Nov 2023 19:11:32 +0330 Subject: [PATCH] Add independent dns cache option --- shared/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shared/config.go b/shared/config.go index 56952fa..07b2974 100644 --- a/shared/config.go +++ b/shared/config.go @@ -36,6 +36,7 @@ type ConfigOptions struct { SetSystemProxy bool `json:"set-system-proxy"` BypassLAN bool `json:"bypass-lan"` EnableFakeDNS bool `json:"enable-fake-dns"` + IndependentDNSCache bool `json:"independent-dns-cache"` Rules []Rule `json:"rules"` } @@ -84,7 +85,7 @@ func BuildConfig(configOpt ConfigOptions, input option.Options) option.Options { options.DNS = &option.DNSOptions{ DNSClientOptions: option.DNSClientOptions{ - IndependentCache: true, + IndependentCache: configOpt.IndependentDNSCache, }, Servers: []option.DNSServerOptions{ {