hectorm / hblock

Improve your security and privacy by blocking ads, tracking and malware domains.
https://hblock.molinero.dev
MIT License
1.54k stars 100 forks source link

openwrt bug #137

Closed timetoseek closed 1 year ago

timetoseek commented 1 year ago

Hblock is using a transfer encoding ("br") which is not supported by uclient-fetch and/or curl (at least by the libcurl lib provided by openwrt, e.g. the parameter "--compressed" is not supported).

Can you please enable deflate encoding too? It seems to be a misconfiguration of server (server must respect encodings from the header sent by HTTP client).

hectorm commented 1 year ago

hBlock in the calls to curl, wget or fetch does not specify a specific transfer encoding, it uses the default options of each tool.

Can you give me a curl or wget command that reproduces this problem in OpenWrt?

timetoseek commented 1 year ago

Can you also please enable deflate encoding? This seems to be a misconfiguration of the Server, as the Server must respect encodings from the header sent by the HTTP client. Thank you!

This retrieves the encrypted file: $ wget https://hblock.molinero.dev/hosts_domains.txt (assuming the --timeout=20 and -O xxx parameters used in adblock.sh are not an issue).

Also please note: $ ll /usr/bin/wget lrwxrwxrwx 1 root root 18 Apr 27 13:28 /usr/bin/wget -> /bin/uclient-fetch*

hectorm commented 1 year ago

Oh, I thought you were referring to the hBlock script and not the website.

It seems I've been bitten by traefik/traefik#9734, expected for a beta version. I've updated the server configuration and it should now work correctly.

timetoseek commented 1 year ago

Excellent, confirmed that it is now working. I will now close this issue. Thank you!