Fix legacy DNS config
This commit is contained in:
@@ -211,7 +211,9 @@ func (o *DNSServerOptions) Upgrade(ctx context.Context) error {
|
|||||||
switch serverType {
|
switch serverType {
|
||||||
case C.DNSTypeLocal:
|
case C.DNSTypeLocal:
|
||||||
o.Type = C.DNSTypeLocal
|
o.Type = C.DNSTypeLocal
|
||||||
o.Options = &remoteOptions.RawLocalDNSServerOptions
|
o.Options = &LocalDNSServerOptions{
|
||||||
|
RawLocalDNSServerOptions: remoteOptions.RawLocalDNSServerOptions,
|
||||||
|
}
|
||||||
case C.DNSTypeUDP:
|
case C.DNSTypeUDP:
|
||||||
o.Type = C.DNSTypeUDP
|
o.Type = C.DNSTypeUDP
|
||||||
o.Options = &remoteOptions
|
o.Options = &remoteOptions
|
||||||
|
|||||||
Reference in New Issue
Block a user