Add dns client

This commit is contained in:
世界
2022-07-06 23:11:48 +08:00
parent 63e1b53a49
commit 001dc5f62c
23 changed files with 582 additions and 145 deletions

View File

@@ -20,7 +20,7 @@ type defaultDialer struct {
net.ListenConfig
}
func newDefault(options option.DialerOptions) N.Dialer {
func NewDefault(options option.DialerOptions) N.Dialer {
var dialer net.Dialer
var listener net.ListenConfig
if options.BindInterface != "" {