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