TuxInvader / nginx-dns

Sample Configuration for DNS over HTTPS (DoH/DoT gateway) and GSLB with NGINX
BSD 2-Clause "Simplified" License
194 stars 47 forks source link

)["bytesFrom"] is not a function #23

Closed hasankayra04 closed 1 year ago

hasankayra04 commented 1 year ago

When i use doh the error below pops up and no response is given to dns request. [error] 1217#1217: *824912 js exception: TypeError: (intermediate value)["bytesFrom"] is not a function at module (/etc/nginx/njs.d/dns/dns.js:28) nginx.conf: https://paste.hasankayra04.com/paste.php?id=6 sites-enabled/default: https://paste.hasankayra04.com/paste.php?id=7

TuxInvader commented 1 year ago

Hi @hasankayra04,

This was due to the main branch being originally built using now removed string functions. It has been updated to use buffers now. Please pull the update and try again.

Thanks

hasankayra04 commented 1 year ago

Seems to be fixed now.