hectorm / hblock

Improve your security and privacy by blocking ads, tracking and malware domains.

Home Page:https://hblock.molinero.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

openwrt bug

timetoseek opened this issue · comments

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).

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?

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*

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.

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