Commit Graph

519 Commits (c86e7b3f96ebcd3c99b19a360f2b7410a6847778)

Author SHA1 Message Date
DL6ER 7523c49f62
Swapping the databases must be the last step before the cleanup. Otherwise, FTL may be reloading from an only partially completed database causing spurious errors and/or warnings.
11 months ago
RD WebDesign 27522fbc18
Add a final message to gravity
12 months ago
Adam Warner aba41b45b0
Some verbiage change to outputs
1 year ago
DL6ER f19a56cf87
Merge branch 'development-v6' into new/antigravity
1 year ago
Christian König eca84e0986
Remove user agent when downloading adlists
1 year ago
DL6ER 2a03671fb9
Reinstall gravity cleanup on error
1 year ago
DL6ER 35512c4dc9
Fix adlist.list migration step failing during tests
1 year ago
DL6ER 00cbb8bc8a
Add antigravity support to gravity
1 year ago
Adam Warner a3bb3872bf
adlist table now contains 11 columns, not 10.
1 year ago
Christian König 7351a4d3b1
Merge branch 'development' into development-v6
1 year ago
DL6ER 6c302c9bc8
Adlist properties need to be stored in the new ("temp") database rather than the old.
1 year ago
Adam Warner ea748822ef
REVISIT: I don't _think_ this line is nessacery. Why should gravity restart FTL if it is offline? It might be offline on purpose.
1 year ago
Adam Warner a91eb48d48
Remove some code from gravity that gets values from setupVars.conf / pihole-FTL.conf - use getFTLConfigValue from utils.sh instead
1 year ago
Adam Warner cd17040f95
setupVars.conf not existing is no longer a critical error
1 year ago
Adam Warner dbc6b814b2
Should not need to reloadDNS manually any more as FTL will detect that it needs to reload by itself
1 year ago
DL6ER 3695610300
Allow running pihole -g without root (run as user pihole)
1 year ago
DL6ER 73733308ba
Use parseList function offered by pihole-FTL
1 year ago
Christian König eaded9fdb1
Remove forgotten variables
1 year ago
Christian König a3e610dbf2
Don't use '--suffix' in mktemp
1 year ago
yubiuser cd638b102f
Filter ABP CSS selectors (#5247)
1 year ago
Christian König dd3a7a4edb
Only delete lines containing separator when preceded by a letter to reduce false positiv (deleting valid comments)
1 year ago
Christian König d10d59303e
There is no ! but an $ rule
2 years ago
Christian König aaf828117d
Remove unecessary $cmd_ext
2 years ago
Christian König 9c4e74ffa7
Remove special handling of pgl.yoyo.org
2 years ago
Christian König 2a0f720153
Don't delete lines containing `/` as they should count as invalid
2 years ago
Christian König cc17fe18a9
Remove lines with ABP extended CSS selector
2 years ago
Christian König 61ff5b2c76
Unifiy sed commands
2 years ago
RD WebDesign 66bfa606a7
Using a better text for the comment
2 years ago
RD WebDesign 32fb2e69ff
Spliting the regex into TLD_pattern and subdomain_pattern
2 years ago
RD WebDesign c71460e4b6
Allow TLD blocking using ABP style
2 years ago
Adam Warner 0656ceb149
Speed things up a bit with some humble greps. Consolodate regexes and remove the need for so many mapfile/arrays
2 years ago
kot0dama 76b7453f90
Add configurable GRAVITY_TMPDIR variable into setupVars
2 years ago
Christian König 71e262c37f
Revert "Allow final dot (root zone)"
2 years ago
Christian König 0b5da9f0da
Allow final dot (root zone)
2 years ago
Christian König 16385af3ef
Use dedicated pattern variable to make RegEx reusable
2 years ago
Christian König 6cb0be82ca
Add flag abp_domains into info table to signal if abp domains have been found
2 years ago
Christian König 821c7dc190
Add info when list cotains ABP style domains
2 years ago
Christian König eedd93d782
Remove temporary files
2 years ago
Adam Warner 1f3f849106
Remove lines starting with ! or [ to account for ABP style comments and header
2 years ago
Christian König ca74152d1d
Allow adding ABP style blocklists
2 years ago
Christian König a4bdf2454b
Don't use intermediate strings to filter false positives in gravity
2 years ago
Adam Warner 9939cf1d77
Rename some of the variables to hopefully make the process a little clearer
2 years ago
Adam Warner 79f4a7cef0
Maintain a list of valid hostnames (taken from the top of StevenBlack's host file), and discount them when calculating the number of "invalid" domains in a given list
2 years ago
Christian König 14ab586603
Start counting with 1
2 years ago
Christian König 372070ab39
Improve detection of incorrecr lines during gravity
2 years ago
Christian König 4004a93d1a
Don't double check for lines containing no domains in gravity
2 years ago
RD WebDesign 090727b1d3
Remove unnecessary return
2 years ago
RD WebDesign 8b98fd06ed
Remove unused old code
2 years ago
Christian König 230d6a435f
Semi hardcode the connection_timeout value
2 years ago
Christian König 53c0982c8b
Set connection timeout for curl
2 years ago