2017-10-07 02:16:47 +02:00
|
|
|
// Copyright 2015 The Go Authors. All rights reserved.
|
2017-04-10 13:32:00 +02:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
// +build nacl plan9 windows
|
|
|
|
|
|
|
|
package net
|
|
|
|
|
|
|
|
import "runtime"
|
|
|
|
|
2017-10-07 02:16:47 +02:00
|
|
|
// See main_conf_test.go for what these (don't) do.
|
2017-04-10 13:32:00 +02:00
|
|
|
func forceGoDNS() func() {
|
|
|
|
switch runtime.GOOS {
|
|
|
|
case "plan9", "windows":
|
|
|
|
return func() {}
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-07 02:16:47 +02:00
|
|
|
// See main_conf_test.go for what these (don't) do.
|
2017-04-10 13:32:00 +02:00
|
|
|
func forceCgoDNS() func() { return nil }
|