]> Cypherpunks repositories - gostls13.git/commit
net: fix lookupHost on Plan 9
authorDavid du Colombier <0intro@gmail.com>
Sun, 28 Apr 2024 12:39:56 +0000 (14:39 +0200)
committerDavid du Colombier <0intro@gmail.com>
Mon, 29 Apr 2024 14:35:28 +0000 (14:35 +0000)
commit16ce8b3925deaeb72541ee96b6ee23a08fc21dea
treea7ce0405633e5d01b14dfd9a48f9b5eeb25922cd
parentcf164403d1ae1459bf48cb7aea3cf16f8aca5a98
net: fix lookupHost on Plan 9

CL 532217 added the newDNSError function.

However, the implementation was not correct on
Plan 9, which lead TestLookupNoSuchHost to fail.

This change fixes lookupHost on Plan 9.

Fixes #67096.

Change-Id: I39271f7d588b19c1b1608f18a24d871460be09cd
Reviewed-on: https://go-review.googlesource.com/c/go/+/582236
Reviewed-by: Joedian Reid <joedian@google.com>
Run-TryBot: David du Colombier <0intro@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/net/lookup_plan9.go
src/net/lookup_test.go