main_noconf_test.go 490 Bytes
Newer Older
1
// Copyright 2015 The Go Authors. All rights reserved.
2 3 4 5 6 7 8
// 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

9 10
import "runtime"

11
// See main_conf_test.go for what these (don't) do.
12 13 14 15 16 17 18 19 20
func forceGoDNS() func() {
	switch runtime.GOOS {
	case "plan9", "windows":
		return func() {}
	default:
		return nil
	}
}

21
// See main_conf_test.go for what these (don't) do.
22
func forceCgoDNS() func() { return nil }