mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-08 10:10:12 +08:00
13 lines
218 B
Go
13 lines
218 B
Go
package dns
|
|
|
|
import (
|
|
"net"
|
|
|
|
"github.com/xjasonlyu/clash/component/dialer"
|
|
)
|
|
|
|
func init() { /* use bound dialer to resolve DNS */
|
|
net.DefaultResolver.PreferGo = true
|
|
net.DefaultResolver.Dial = dialer.DialContext
|
|
}
|