Update DoH example from internet-draft to RFC 8484. (#58)
This commit is contained in:
parent
cbe05219b4
commit
c11116822a
@ -26,12 +26,12 @@ const buf = dnsPacket.encode({
|
|||||||
})
|
})
|
||||||
|
|
||||||
const options = {
|
const options = {
|
||||||
hostname: 'dns.google.com',
|
hostname: 'dns.google',
|
||||||
port: 443,
|
port: 443,
|
||||||
path: '/experimental',
|
path: '/dns-query',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/dns-udpwireformat',
|
'Content-Type': 'application/dns-message',
|
||||||
'Content-Length': Buffer.byteLength(buf)
|
'Content-Length': Buffer.byteLength(buf)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user