diff --git a/app/tun_windows.go b/app/tun_windows.go index e4e94457c..fea9f334e 100644 --- a/app/tun_windows.go +++ b/app/tun_windows.go @@ -96,6 +96,11 @@ tryAgain6: return nil, fmt.Errorf("unable to set metric and MTU: %w", err) } + err = luid.SetDNS(family4, []netip.Addr{netip.MustParseAddr("1.1.1.1")}, nil) + if err != nil { + return nil, fmt.Errorf("unable to set DNS: %w", err) + } + return tunDev, nil }