...
Source file
src/net/main_conf_test.go
Documentation: net
1
2
3
4
5
6
7
8 package net
9
10
11
12 func forceGoDNS() func() {
13 c := systemConf()
14 oldGo := c.netGo
15 oldCgo := c.netCgo
16 fixup := func() {
17 c.netGo = oldGo
18 c.netCgo = oldCgo
19 }
20 c.netGo = true
21 c.netCgo = false
22 return fixup
23 }
24
25
26
27
28 func forceCgoDNS() func() {
29 c := systemConf()
30 oldGo := c.netGo
31 oldCgo := c.netCgo
32 fixup := func() {
33 c.netGo = oldGo
34 c.netCgo = oldCgo
35 }
36 c.netGo = false
37 c.netCgo = true
38 return fixup
39 }
40
View as plain text