cloudflarearchive / odoh-server-go

Oblivious DoH server in Go
MIT License
66 stars 17 forks source link

Separate endpoints for proxy and dns-query, minor fixes #9

Closed tanyav2 closed 3 years ago

tanyav2 commented 3 years ago

Currently, both proxy and target listened on /dns-query. This changes them to listen on /proxy and /dns-query respectively. Currently, indexHandler was using r.URL.Hostname() and r.URL.Port(), but for client requests, these are not set. So that has been updated to use r.Host (which includes port).

coveralls commented 3 years ago

Pull Request Test Coverage Report for Build 424727693

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
odoh_server.go 0 6 0.0%
<!-- Total: 0 6 0.0% -->
Files with Coverage Reduction New Missed Lines %
odoh_server.go 24 0.0%
<!-- Total: 24 -->
Totals Coverage Status
Change from base Build 424676131: -0.05%
Covered Lines: 54
Relevant Lines: 488

💛 - Coveralls