mirror of https://github.com/golang/go.git
net: support forceCgoDNS and forceGoDns on windows
This commit is contained in:
parent
06264b740e
commit
e0b6e39870
|
|
@ -2,7 +2,7 @@
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !js && !plan9 && !windows
|
//go:build !js && !plan9
|
||||||
|
|
||||||
package net
|
package net
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build (js && wasm) || plan9 || windows
|
//go:build (js && wasm) || plan9
|
||||||
|
|
||||||
package net
|
package net
|
||||||
|
|
||||||
|
|
@ -11,7 +11,7 @@ import "runtime"
|
||||||
// See main_conf_test.go for what these (don't) do.
|
// See main_conf_test.go for what these (don't) do.
|
||||||
func forceGoDNS() func() {
|
func forceGoDNS() func() {
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "plan9", "windows":
|
case "plan9":
|
||||||
return func() {}
|
return func() {}
|
||||||
default:
|
default:
|
||||||
return nil
|
return nil
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue