cloudflarearchive / odoh-server-go

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

Endpoint for proxy should not be `/proxy` #1

Closed tanyav2 closed 3 years ago

tanyav2 commented 3 years ago

Currently, the endpoint for the proxy is /proxy: https://github.com/cloudflare/odoh-server-go/blob/master/odoh_server.go#L48

According to the IETF draft, the endpoint for the proxy is not /proxy. Instead, it is just /dns-query and then we check whether the targethost and targetpath variables are set. If they are, it is a request for the proxy, otherwise, for the target.