1
0
mirror of https://github.com/golang/go synced 2024-11-17 11:44:51 -07:00

net: support forceCgoDNS and forceGoDns on windows

This commit is contained in:
Mateusz Poliwczak 2023-03-26 10:14:58 +02:00
parent 06264b740e
commit e0b6e39870
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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