Skip to content

Commit 8d0ed1c

Browse files
committed
net/dns/resolver: on Android, make ExitDNS use net package for DNS
Like Windows. Updates tailscale#1738 Change-Id: I9f26bc58ce7e760c749786fbe5d9952c99eeb91c Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
1 parent e68d87e commit 8d0ed1c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

net/dns/resolver/tsdns.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -357,10 +357,7 @@ func (r *Resolver) HandleExitNodeDNSQuery(ctx context.Context, q []byte, from ne
357357
switch runtime.GOOS {
358358
default:
359359
return nil, errors.New("unsupported exit node OS")
360-
case "windows":
361-
// TODO: use DnsQueryEx and write to ch.
362-
// See https://docs.microsoft.com/en-us/windows/win32/api/windns/nf-windns-dnsqueryex.
363-
// For now just use the net package:
360+
case "windows", "android":
364361
return handleExitNodeDNSQueryWithNetPkg(ctx, nil, resp)
365362
case "darwin":
366363
// /etc/resolv.conf is a lie and only says one upstream DNS

0 commit comments

Comments
 (0)