From a81bbbd8119b938c1bbd37d86b147e27e8d5842a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Mon, 18 Aug 2025 22:38:50 +0800 Subject: [PATCH] Fix legacy DNS config --- option/dns.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/option/dns.go b/option/dns.go index 7a23f2c8..4c1ac208 100644 --- a/option/dns.go +++ b/option/dns.go @@ -211,7 +211,9 @@ func (o *DNSServerOptions) Upgrade(ctx context.Context) error { switch serverType { case C.DNSTypeLocal: o.Type = C.DNSTypeLocal - o.Options = &remoteOptions.RawLocalDNSServerOptions + o.Options = &LocalDNSServerOptions{ + RawLocalDNSServerOptions: remoteOptions.RawLocalDNSServerOptions, + } case C.DNSTypeUDP: o.Type = C.DNSTypeUDP o.Options = &remoteOptions