mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-05 06:07:36 +03:00
Pad only once
This commit is contained in:
parent
436125e812
commit
fd9e97a570
1 changed files with 0 additions and 3 deletions
|
@ -274,9 +274,6 @@ func (xTransport *XTransport) DoHQuery(useGet bool, url *url.URL, body []byte, t
|
|||
qs.Add("ct", "")
|
||||
encBody := base64.RawURLEncoding.EncodeToString(body)
|
||||
qs.Add("dns", encBody)
|
||||
if padding != nil {
|
||||
qs.Add("random_padding", *padding)
|
||||
}
|
||||
url2 := *url
|
||||
url2.RawQuery = qs.Encode()
|
||||
return xTransport.Get(&url2, dataType, timeout)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue