aarond10 / https_dns_proxy

A lightweight DNS-over-HTTPS proxy.
MIT License
779 stars 114 forks source link

Prevent error log flood if HTTP/2 is unsupported #116

Closed baranyaib90 closed 3 years ago

baranyaib90 commented 3 years ago

If HTTP/2 is unsupported by libcurl, force HTTP/1.1 This will prevent log flood, by printing log only in case of first request.

Tested by changing CURL_HTTP_VERSION_2_0 to invalid randum number and sending in multiple requests at the same time, so new HTTP session open would be needed.

Fix for: #115