upgrade dnscrypt client to v1.0.0

This commit is contained in:
Andrey Meshkov
2018-12-18 13:24:15 +03:00
parent 45626b139d
commit 3d17907966
3 changed files with 10 additions and 3 deletions

View File

@@ -208,7 +208,7 @@ func (p *dnsCrypt) Exchange(m *dns.Msg) (*dns.Msg, error) {
p.Lock()
// Using "udp" for DNSCrypt upstreams by default
client = &dnscrypt.Client{Proto: "udp", Timeout: defaultTimeout}
client = &dnscrypt.Client{Timeout: defaultTimeout, AdjustPayloadSize: true}
si, _, err := client.Dial(p.boot.address)
if err != nil {