]> Cypherpunks.ru repositories - gostls13.git/commit
net: don't set netGo = true on Windows with no cgo
authorIan Lance Taylor <iant@golang.org>
Tue, 21 Jun 2022 22:17:22 +0000 (15:17 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 22 Jun 2022 16:18:44 +0000 (16:18 +0000)
commit92c9b81447649d5a8ed38ca79b71640c099e0243
treee521d8ba4bace9dba9e6acc3386df6cf96233430
parentbe0b2a393a5a7297a3c8f42ca7d5ad3e4b15dcbe
net: don't set netGo = true on Windows with no cgo

Windows can call the C DNS lookup routines even without cgo,
so don't force it to use the Go routines in that scenario.

No test because the test requires building the tools with CGO_ENABLED=0.

For #33097
Fixes #53490

Change-Id: I3595a68e788be0d3bbd1bbd431836aca20a7d757
Reviewed-on: https://go-review.googlesource.com/c/go/+/413458
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
src/net/cgo_stub.go
src/net/netgo.go