]> Cypherpunks repositories - gostls13.git/commit
net: always set the servers field to defaultNS
authorMateusz Poliwczak <mpoliwczak34@gmail.com>
Sat, 7 Feb 2026 10:03:17 +0000 (11:03 +0100)
committerGopher Robot <gobot@golang.org>
Thu, 12 Feb 2026 20:05:51 +0000 (12:05 -0800)
commit30d5c1b0572f7d021def277097df6a21f300995e
treea0966a877752e349930f0dc09d18cfdffef9caef
parenta44ed023f600de1b8fbeb2be514ec20c964b3330
net: always set the servers field to defaultNS

When the field is parsed from a file, it would never
have len(servers) == 0, lets enforce that and update
test cases where we had it wrong.

Change-Id: I7fa6ebcf63b9fe20fbbf791113ca948d6a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/743020
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Sean Liao <sean@liao.dev>
src/net/conf_test.go
src/net/dnsclient_unix.go