]> Cypherpunks repositories - gostls13.git/commit
net: re check conf.goos even if it equals runtime.GOOS
authorIan Lance Taylor <iant@golang.org>
Thu, 27 Apr 2023 22:56:34 +0000 (15:56 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 28 Apr 2023 13:22:04 +0000 (13:22 +0000)
commit752ef81056691603c8b305a5f894215d3eb64b14
tree409c3195cc60f0600f9153ab88a3b533ffef6857
parentf0461808903d8781757e006704821fd72fb1c79a
net: re check conf.goos even if it equals runtime.GOOS

This field is only for testing purposes, where we can't assume
that the conf value was initialized as expected for that GOOS.

This fixes the net tests on android.

Change-Id: I8432587f219a05adbb4d234a813467f876a764b2
Reviewed-on: https://go-review.googlesource.com/c/go/+/489975
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/net/conf.go