gfwproxyshadowsocksdocker-imagegogolanggvisornatnetworksocks4socks5tcpip-stacktortun-devicetun2sockstunneludpwireguard
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
270 B
14 lines
270 B
package dns
|
|
|
|
import (
|
|
"net"
|
|
|
|
"github.com/xjasonlyu/tun2socks/v2/component/dialer"
|
|
)
|
|
|
|
func init() {
|
|
// We must use this DialContext to query DNS
|
|
// when using net default resolver.
|
|
net.DefaultResolver.PreferGo = true
|
|
net.DefaultResolver.Dial = dialer.DialContext
|
|
}
|
|
|