Fix legacy DNS config

This commit is contained in:
世界 2025-08-18 22:38:50 +08:00
parent f71a48058d
commit 0337d78e8f
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

View File

@ -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