mirror of
https://github.com/golang/go
synced 2024-11-17 09:04:44 -07:00
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
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !js && !plan9 && !windows
|
||||
//go:build !js && !plan9
|
||||
|
||||
package net
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build (js && wasm) || plan9 || windows
|
||||
//go:build (js && wasm) || plan9
|
||||
|
||||
package net
|
||||
|
||||
@ -11,7 +11,7 @@ import "runtime"
|
||||
// See main_conf_test.go for what these (don't) do.
|
||||
func forceGoDNS() func() {
|
||||
switch runtime.GOOS {
|
||||
case "plan9", "windows":
|
||||
case "plan9":
|
||||
return func() {}
|
||||
default:
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user