splondike / polipoid

Android wrapper for the polipo proxy
GNU General Public License v3.0
35 stars 12 forks source link

Config File Byte Limit #20

Closed adamchilcott closed 6 years ago

adamchilcott commented 6 years ago

Received the following error when enabling the "forbiddenFile" variable:

Config file too big (max size is 20480 bytes)

For the purposes of ad-blocking via polipoid, as it offers a good alternative to the non-root VPN workarounds that seem to be so popular (Blokada for example).

My polipoid config as follows:

proxyName=YOURDEVICENAMEHERE
cacheIsShared=false
chunkHighMark=50331648
objectHighMark=16384
localDocumentRoot=""
disableLocalInterface=true
censoredHeaders=form,accept-language
censorReferer=maybe
dnsUseGethostbyname=yes
forbiddenFile=/storage/emulated/0/Android/data/com.polipoid/files/adservers.polipoid

#source forbiddenFile
#wget --output-document=adservers.polipoid 'https://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml&showintro=0&mimetype=plaintext'
splondike commented 6 years ago

@adamchilcott Something strange is going on there. The 'Config file too big ...' message is from my code, and just relates to the contents of the settings textbox.

I replaced the default configuration with your one, downloaded the blacklist and configured the proxy on my LineageOS 7.1.2 tablet. It all worked, and blocked the listed domains as expected (though only under HTTP; HTTPS for Chrome bypasses the proxy on my machine).

Perhaps you could try resetting to the default configuration and checking you can save that, then checking you can alter it line by line to match your above config to narrow down the problem.

adamchilcott commented 6 years ago

OK, yes it appears there were some hidden spaces in the config editor I had somehow introduced. All working now :+1:

This issue can now be closed.

Best,

Adam.