Explorar el Código

Fix legacy DNS config

世界 hace 2 meses
padre
commit
384e993cf8
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      option/dns.go

+ 3 - 1
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