]> Cypherpunks repositories - gostls13.git/commit
net: use avoidDNS for search suffixes
authorMateusz Poliwczak <mpoliwczak34@gmail.com>
Fri, 21 Jul 2023 09:51:42 +0000 (09:51 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 21 Aug 2023 23:20:00 +0000 (23:20 +0000)
commitc513a61988a6d6f9778f50676681348364ccdfee
tree8b32bb943b06807bc9ed06f977724ac76700673c
parent47645420348778a9b289e979ac5f757e64a78696
net: use avoidDNS for search suffixes

The go resolver shouldn't attempt to query .onion domains, but
the restriction was not restricted for search domains.

Also before this change query for "sth.onion" would
not be suffixed with any search domain (for "go.dev" search
domain, it should query fine the "std.onion.go.dev" domain).

Change-Id: I0f3e1387e0d59721381695f94586e3743603c30e
GitHub-Last-Rev: 7e8ec44078529353c18c8fe34e5207014ce1e685
GitHub-Pull-Request: golang/go#60678
Reviewed-on: https://go-review.googlesource.com/c/go/+/501701
Run-TryBot: Mateusz Poliwczak <mpoliwczak34@gmail.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/net/dnsclient_unix.go
src/net/dnsclient_unix_test.go