mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-05 08:47:00 +08:00
11 lines
206 B
Go
11 lines
206 B
Go
package dialer
|
|
|
|
import "net"
|
|
|
|
func init() {
|
|
// We must use this DialContext to query DNS
|
|
// when using net default resolver.
|
|
net.DefaultResolver.PreferGo = true
|
|
net.DefaultResolver.Dial = DialContext
|
|
}
|