-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update dns.js #1
base: master
Are you sure you want to change the base?
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)