Chore: use custom dialer

This commit is contained in:
Dreamacro
2020-02-09 17:02:48 +08:00
parent a55be58c01
commit afc9f3f59a
10 changed files with 68 additions and 5 deletions

View File

@ -7,6 +7,8 @@ import (
"io/ioutil"
"net/http"
"github.com/Dreamacro/clash/component/dialer"
D "github.com/miekg/dns"
)
@ -17,6 +19,7 @@ const (
var dohTransport = &http.Transport{
TLSClientConfig: &tls.Config{ClientSessionCache: globalSessionCache},
DialContext: dialer.DialContext,
}
type dohClient struct {