Conversation
added compatibility with dnscrypt-proxy2 client. (Error when dns is not first parameter. for example GET /dns-query?ct=&dns=blah)
[error] 4264#4264: *834 js exception: TypeError: cannot convert undefined argument to object
at Object.entries (native)
at JSON.stringify (native)
at debug (dns.js:39)
at anonymous (dns.js:197)
when dns_decode_level = 0
|
Hi Kirill, Thanks for the PR. I'll fix the dns_decode_level bug, but I think it would be more efficient to accommodate extra query arguments in the NGINX config itself, rather than looping through them in NJS. Eg: Are the other arguments that dnscrypt-proxy2 sends relevant to the DoH gateway? Thanks, |
|
Hey! |
When you send a POST through DoH, the raw packet is sent inside the body, it looks like they are just sending a hash of it in the URI as an argument. I don't know why it would fail though... I've tested a similar thing with curl...
|
|
Can u share this 'dns.packet'? I will test from my side |
|
Sure. I had to gzip for github. |
In that way everything is normal =\ |
added compatibility with dnscrypt-proxy2 client.
(Error when dns is not first parameter. for example GET /dns-query?ct=&dns=blah)